mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
add stop button
This commit is contained in:
parent
6377906e12
commit
c94b446766
2 changed files with 41 additions and 13 deletions
|
@ -71,6 +71,7 @@ typedef struct App
|
|||
GtkAction *add_transition;
|
||||
GtkAction *delete;
|
||||
GtkAction *play;
|
||||
GtkAction *stop;
|
||||
|
||||
GtkComboBox *halign;
|
||||
GtkComboBox *valign;
|
||||
|
@ -633,6 +634,7 @@ create_ui (App * app)
|
|||
GET_WIDGET (app->add_transition, "add_transition", GTK_ACTION);
|
||||
GET_WIDGET (app->delete, "delete", GTK_ACTION);
|
||||
GET_WIDGET (app->play, "play", GTK_ACTION);
|
||||
GET_WIDGET (app->stop, "stop", GTK_ACTION);
|
||||
GET_WIDGET (app->seconds, "seconds", GTK_ENTRY);
|
||||
GET_WIDGET (app->generic_duration, "generic_duration", GTK_WIDGET);
|
||||
GET_WIDGET (app->background_type, "background_type", GTK_COMBO_BOX);
|
||||
|
|
|
@ -134,8 +134,8 @@
|
|||
<child>
|
||||
<object class="GtkImageMenuItem" id="delete_item">
|
||||
<property name="visible">True</property>
|
||||
<property name="related_action">delete</property>
|
||||
<property name="use_action_appearance">True</property>
|
||||
<property name="related_action">delete</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_stock">True</property>
|
||||
</object>
|
||||
|
@ -162,22 +162,22 @@
|
|||
<child>
|
||||
<object class="GtkMenuItem" id="add_file_item">
|
||||
<property name="visible">True</property>
|
||||
<property name="related_action">add_file</property>
|
||||
<property name="use_action_appearance">True</property>
|
||||
<property name="related_action">add_file</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="menuitem4">
|
||||
<property name="visible">True</property>
|
||||
<property name="related_action">add_text</property>
|
||||
<property name="use_action_appearance">True</property>
|
||||
<property name="related_action">add_text</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkImageMenuItem" id="menuitem5">
|
||||
<property name="visible">True</property>
|
||||
<property name="related_action">add_test</property>
|
||||
<property name="use_action_appearance">True</property>
|
||||
<property name="related_action">add_test</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_stock">True</property>
|
||||
</object>
|
||||
|
@ -185,8 +185,8 @@
|
|||
<child>
|
||||
<object class="GtkImageMenuItem" id="imagemenuitem1">
|
||||
<property name="visible">True</property>
|
||||
<property name="related_action">add_transition</property>
|
||||
<property name="use_action_appearance">True</property>
|
||||
<property name="related_action">add_transition</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_stock">True</property>
|
||||
</object>
|
||||
|
@ -200,12 +200,20 @@
|
|||
<child>
|
||||
<object class="GtkImageMenuItem" id="menuitem2">
|
||||
<property name="visible">True</property>
|
||||
<property name="related_action">play</property>
|
||||
<property name="use_action_appearance">True</property>
|
||||
<property name="related_action">play</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="use_stock">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkImageMenuItem" id="menuitem6">
|
||||
<property name="visible">True</property>
|
||||
<property name="use_action_appearance">True</property>
|
||||
<property name="related_action">stop</property>
|
||||
<property name="use_stock">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
@ -335,6 +343,19 @@
|
|||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="toolbutton6">
|
||||
<property name="visible">True</property>
|
||||
<property name="use_action_appearance">True</property>
|
||||
<property name="related_action">stop</property>
|
||||
<property name="label" translatable="yes">toolbutton6</property>
|
||||
<property name="use_underline">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
|
@ -766,16 +787,16 @@
|
|||
<object class="GtkTreeSelection" id="selection"/>
|
||||
<object class="GtkSizeGroup" id="LabelSizeGroup">
|
||||
<widgets>
|
||||
<widget name="label6"/>
|
||||
<widget name="label5"/>
|
||||
<widget name="label4"/>
|
||||
<widget name="label3"/>
|
||||
<widget name="label_inpoint"/>
|
||||
<widget name="label_duration"/>
|
||||
<widget name="label_duration"/>
|
||||
<widget name="label_inpoint"/>
|
||||
<widget name="label2"/>
|
||||
<widget name="label_inpoint"/>
|
||||
<widget name="label_duration"/>
|
||||
<widget name="label_duration"/>
|
||||
<widget name="label_inpoint"/>
|
||||
<widget name="label3"/>
|
||||
<widget name="label4"/>
|
||||
<widget name="label5"/>
|
||||
<widget name="label6"/>
|
||||
</widgets>
|
||||
</object>
|
||||
<object class="GtkAction" id="delete">
|
||||
|
@ -834,4 +855,9 @@
|
|||
<property name="always_show_image">True</property>
|
||||
<signal name="activate" handler="add_transition_activate_cb"/>
|
||||
</object>
|
||||
<object class="GtkAction" id="stop">
|
||||
<property name="label">Stop</property>
|
||||
<property name="short_label">Stop</property>
|
||||
<property name="stock_id">gtk-media-stop</property>
|
||||
</object>
|
||||
</interface>
|
||||
|
|
Loading…
Reference in a new issue