diff --git a/gtk/gtkpagesetupunixdialog.c b/gtk/gtkpagesetupunixdialog.c index 4288b8d9c5..5601aefe36 100644 --- a/gtk/gtkpagesetupunixdialog.c +++ b/gtk/gtkpagesetupunixdialog.c @@ -43,6 +43,7 @@ #include "gtkprintbackend.h" #include "gtkpapersize.h" #include "gtkprintutils.h" +#include "gtkdialogprivate.h" /** * SECTION:gtkpagesetupunixdialog @@ -190,6 +191,19 @@ gtk_page_setup_unix_dialog_init (GtkPageSetupUnixDialog *dialog) priv->print_backends = NULL; gtk_widget_init_template (GTK_WIDGET (dialog)); + gtk_dialog_set_use_header_bar_from_setting (GTK_DIALOG (dialog)); + gtk_dialog_add_buttons (GTK_DIALOG (dialog), + _("_Cancel"), GTK_RESPONSE_CANCEL, + _("_Apply"), GTK_RESPONSE_OK, + NULL); + gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); + +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), + GTK_RESPONSE_OK, + GTK_RESPONSE_CANCEL, + -1); +G_GNUC_END_IGNORE_DEPRECATIONS /* Do this in code, we want the translatable strings without the markup */ gtk_list_store_append (priv->printer_list, &iter); @@ -213,12 +227,6 @@ gtk_page_setup_unix_dialog_init (GtkPageSetupUnixDialog *dialog) /* Load data */ _gtk_print_load_custom_papers (priv->custom_paper_list); load_print_backends (dialog); -G_GNUC_BEGIN_IGNORE_DEPRECATIONS - gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), - GTK_RESPONSE_OK, - GTK_RESPONSE_CANCEL, - -1); -G_GNUC_END_IGNORE_DEPRECATIONS } static void diff --git a/gtk/gtkpagesetupunixdialog.ui b/gtk/gtkpagesetupunixdialog.ui index a6059f6946..46fe97b5f6 100644 --- a/gtk/gtkpagesetupunixdialog.ui +++ b/gtk/gtkpagesetupunixdialog.ui @@ -28,53 +28,12 @@ 5 False dialog + Page Setup False vertical 2 - - - False - end - - - _Cancel - True - True - True - True - - - False - True - 0 - - - - - _Apply - True - True - True - True - True - True - - - False - True - 1 - - - - - False - True - end - 0 - - True @@ -400,14 +359,10 @@ True True - 1 + 0 - - cancel_button - apply_button - diff --git a/gtk/gtkpagesetupunixdialog.ui.h b/gtk/gtkpagesetupunixdialog.ui.h index ab92261eac..8ee6315470 100644 --- a/gtk/gtkpagesetupunixdialog.ui.h +++ b/gtk/gtkpagesetupunixdialog.ui.h @@ -1,5 +1,4 @@ -N_("_Cancel"); -N_("_Apply"); +N_("Page Setup"); N_("_Format for:"); N_("_Paper size:"); N_("_Orientation:");