[gtk/wip/baedert/for-master: 82/96] Fix print dialog node name
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 82/96] Fix print dialog node name
- Date: Wed, 10 Jun 2020 15:08:23 +0000 (UTC)
commit d1a04d362a6fc50b32cd0a1a46fedb4b64bbdb87
Author: Timm Bäder <mail baedert org>
Date: Sat Jun 6 08:13:00 2020 +0200
Fix print dialog node name
gtk/gtkprintunixdialog.c | 7 ++++---
gtk/theme/Adwaita/_common.scss | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 2e67523ce1..e88a2e5c85 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -114,7 +114,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.
*/
@@ -531,8 +532,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 */
@@ -730,6 +729,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,
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 6ca74d3c7e..073614d142 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -2905,7 +2905,7 @@ levelbar {
/****************
* Print dialog *
*****************/
-printdialog {
+window.dialog.print {
drawing {
color: $fg_color;
background: none;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]