app chooser: Move buttons to template

Use the new builder dialog action support.
This commit is contained in:
Matthias Clasen 2014-07-09 19:46:16 -04:00
parent 9aad874fad
commit da699bcaba
3 changed files with 21 additions and 5 deletions

View File

@ -702,11 +702,6 @@ gtk_app_chooser_dialog_init (GtkAppChooserDialog *self)
gtk_widget_init_template (GTK_WIDGET (self));
gtk_dialog_set_use_header_bar_from_setting (GTK_DIALOG (self));
gtk_dialog_add_buttons (GTK_DIALOG (self),
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Select"), GTK_RESPONSE_OK,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (self), GTK_RESPONSE_OK);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_dialog_set_alternative_button_order (GTK_DIALOG (self),

View File

@ -72,6 +72,25 @@
</child>
</object>
</child>
<child type="action">
<object class="GtkButton" id="cancel_button">
<property name="visible">True</property>
<property name="use_underline">True</property>
<property name="label" translatable="yes">_Cancel</property>
</object>
</child>
<child type="action">
<object class="GtkButton" id="ok_button">
<property name="visible">True</property>
<property name="label" translatable="yes">_Select</property>
<property name="use_underline">True</property>
<property name="can_default">True</property>
</object>
</child>
<action-widgets>
<action-widget response="cancel">cancel_button</action-widget>
<action-widget response="ok" default="true">ok_button</action-widget>
</action-widgets>
</template>
<object class="GtkButton" id="show_more_button">
<property name="label" translatable="yes">_View All Applications</property>

View File

@ -1,4 +1,6 @@
N_("Select Application");
N_("label");
N_("_Cancel");
N_("_Select");
N_("_View All Applications");
N_("_Find New Applications");