diff options
author | Timm Bäder <mail@baedert.org> | 2020-06-06 08:13:00 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-06-19 05:25:52 +0200 |
commit | 9eaeb048635805ac6773404fee9a803e6a003cc0 (patch) | |
tree | ab4b161e9d810e7e1f36d8656fc83471c157c20c /gtk/gtkprintunixdialog.c | |
parent | 5e6c3166036642afdecf90cf6cc5a49801be70bc (diff) | |
download | gtk+-9eaeb048635805ac6773404fee9a803e6a003cc0.tar.gz |
Fix print dialog node name
Diffstat (limited to 'gtk/gtkprintunixdialog.c')
-rw-r--r-- | gtk/gtkprintunixdialog.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c index f63b9d5e15..37a9e58e6f 100644 --- a/gtk/gtkprintunixdialog.c +++ b/gtk/gtkprintunixdialog.c @@ -111,7 +111,8 @@ * * # CSS nodes * - * GtkPrintUnixDialog has a single CSS node with name printdialog. + * GtkPrintUnixDialog has a single CSS node with name window. The style classes + * dialog and print are added. */ @@ -508,8 +509,6 @@ gtk_print_unix_dialog_class_init (GtkPrintUnixDialogClass *class) gtk_widget_class_bind_template_callback (widget_class, redraw_page_layout_preview); gtk_widget_class_bind_template_callback (widget_class, update_number_up_layout); gtk_widget_class_bind_template_callback (widget_class, redraw_page_layout_preview); - - gtk_widget_class_set_css_name (widget_class, I_("printdialog")); } /* Returns a toplevel GtkWindow, or NULL if none */ @@ -776,6 +775,8 @@ gtk_print_unix_dialog_init (GtkPrintUnixDialog *dialog) g_type_ensure (GTK_TYPE_PRINTER_OPTION_WIDGET); gtk_widget_init_template (GTK_WIDGET (dialog)); + gtk_widget_add_css_class (GTK_WIDGET (dialog), "print"); + gtk_dialog_set_use_header_bar_from_setting (GTK_DIALOG (dialog)); gtk_dialog_add_buttons (GTK_DIALOG (dialog), _("Pre_view"), GTK_RESPONSE_APPLY, |