mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +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 *add_transition;
|
||||||
GtkAction *delete;
|
GtkAction *delete;
|
||||||
GtkAction *play;
|
GtkAction *play;
|
||||||
|
GtkAction *stop;
|
||||||
|
|
||||||
GtkComboBox *halign;
|
GtkComboBox *halign;
|
||||||
GtkComboBox *valign;
|
GtkComboBox *valign;
|
||||||
|
@ -633,6 +634,7 @@ create_ui (App * app)
|
||||||
GET_WIDGET (app->add_transition, "add_transition", GTK_ACTION);
|
GET_WIDGET (app->add_transition, "add_transition", GTK_ACTION);
|
||||||
GET_WIDGET (app->delete, "delete", GTK_ACTION);
|
GET_WIDGET (app->delete, "delete", GTK_ACTION);
|
||||||
GET_WIDGET (app->play, "play", 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->seconds, "seconds", GTK_ENTRY);
|
||||||
GET_WIDGET (app->generic_duration, "generic_duration", GTK_WIDGET);
|
GET_WIDGET (app->generic_duration, "generic_duration", GTK_WIDGET);
|
||||||
GET_WIDGET (app->background_type, "background_type", GTK_COMBO_BOX);
|
GET_WIDGET (app->background_type, "background_type", GTK_COMBO_BOX);
|
||||||
|
|
|
@ -134,8 +134,8 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkImageMenuItem" id="delete_item">
|
<object class="GtkImageMenuItem" id="delete_item">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="related_action">delete</property>
|
|
||||||
<property name="use_action_appearance">True</property>
|
<property name="use_action_appearance">True</property>
|
||||||
|
<property name="related_action">delete</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
</object>
|
</object>
|
||||||
|
@ -162,22 +162,22 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkMenuItem" id="add_file_item">
|
<object class="GtkMenuItem" id="add_file_item">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="related_action">add_file</property>
|
|
||||||
<property name="use_action_appearance">True</property>
|
<property name="use_action_appearance">True</property>
|
||||||
|
<property name="related_action">add_file</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkMenuItem" id="menuitem4">
|
<object class="GtkMenuItem" id="menuitem4">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="related_action">add_text</property>
|
|
||||||
<property name="use_action_appearance">True</property>
|
<property name="use_action_appearance">True</property>
|
||||||
|
<property name="related_action">add_text</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkImageMenuItem" id="menuitem5">
|
<object class="GtkImageMenuItem" id="menuitem5">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="related_action">add_test</property>
|
|
||||||
<property name="use_action_appearance">True</property>
|
<property name="use_action_appearance">True</property>
|
||||||
|
<property name="related_action">add_test</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
</object>
|
</object>
|
||||||
|
@ -185,8 +185,8 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkImageMenuItem" id="imagemenuitem1">
|
<object class="GtkImageMenuItem" id="imagemenuitem1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="related_action">add_transition</property>
|
|
||||||
<property name="use_action_appearance">True</property>
|
<property name="use_action_appearance">True</property>
|
||||||
|
<property name="related_action">add_transition</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
</object>
|
</object>
|
||||||
|
@ -200,12 +200,20 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkImageMenuItem" id="menuitem2">
|
<object class="GtkImageMenuItem" id="menuitem2">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="related_action">play</property>
|
|
||||||
<property name="use_action_appearance">True</property>
|
<property name="use_action_appearance">True</property>
|
||||||
|
<property name="related_action">play</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</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>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
@ -335,6 +343,19 @@
|
||||||
<property name="homogeneous">True</property>
|
<property name="homogeneous">True</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</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>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
|
@ -766,16 +787,16 @@
|
||||||
<object class="GtkTreeSelection" id="selection"/>
|
<object class="GtkTreeSelection" id="selection"/>
|
||||||
<object class="GtkSizeGroup" id="LabelSizeGroup">
|
<object class="GtkSizeGroup" id="LabelSizeGroup">
|
||||||
<widgets>
|
<widgets>
|
||||||
<widget name="label6"/>
|
|
||||||
<widget name="label5"/>
|
|
||||||
<widget name="label4"/>
|
<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="label2"/>
|
||||||
<widget name="label_inpoint"/>
|
<widget name="label3"/>
|
||||||
<widget name="label_duration"/>
|
|
||||||
<widget name="label_duration"/>
|
|
||||||
<widget name="label_inpoint"/>
|
|
||||||
<widget name="label4"/>
|
<widget name="label4"/>
|
||||||
|
<widget name="label5"/>
|
||||||
|
<widget name="label6"/>
|
||||||
</widgets>
|
</widgets>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkAction" id="delete">
|
<object class="GtkAction" id="delete">
|
||||||
|
@ -834,4 +855,9 @@
|
||||||
<property name="always_show_image">True</property>
|
<property name="always_show_image">True</property>
|
||||||
<signal name="activate" handler="add_transition_activate_cb"/>
|
<signal name="activate" handler="add_transition_activate_cb"/>
|
||||||
</object>
|
</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>
|
</interface>
|
||||||
|
|
Loading…
Reference in a new issue