diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-10-29 13:53:47 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-10-29 15:27:53 -0400 |
commit | 9948053cd7e43e09cdcc3942c08d33fc6dc58c62 (patch) | |
tree | 13567c05eb01624e8833b0b728030f952edfb9dd /gtk/gtkpagesetupunixdialog.c | |
parent | f1af8046d0dc225dac57b7762d3216267afa67f2 (diff) | |
download | gtk+-9948053cd7e43e09cdcc3942c08d33fc6dc58c62.tar.gz |
Deprecate GtkDialog
GtkDialog is too flexible in terms of UI (headerbars vs action bar,
etc), and has archaic APIs. It is time to retire it.
Diffstat (limited to 'gtk/gtkpagesetupunixdialog.c')
-rw-r--r-- | gtk/gtkpagesetupunixdialog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkpagesetupunixdialog.c b/gtk/gtkpagesetupunixdialog.c index 399d38f29d..a78bbc13d9 100644 --- a/gtk/gtkpagesetupunixdialog.c +++ b/gtk/gtkpagesetupunixdialog.c @@ -35,7 +35,7 @@ #include "gtkprintbackendprivate.h" #include "gtkpapersize.h" #include "gtkprintutils.h" -#include "gtkdialogprivate.h" +#include "deprecated/gtkdialogprivate.h" /** * GtkPageSetupUnixDialog: @@ -276,12 +276,15 @@ gtk_page_setup_unix_dialog_init (GtkPageSetupUnixDialog *dialog) dialog->print_backends = NULL; gtk_widget_init_template (GTK_WIDGET (dialog)); + +G_GNUC_BEGIN_IGNORE_DEPRECATIONS 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_END_IGNORE_DEPRECATIONS dialog->page_setup_list = g_list_store_new (GTK_TYPE_PAGE_SETUP); dialog->custom_paper_list = g_list_store_new (GTK_TYPE_PAGE_SETUP); |