diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-11-07 00:57:03 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-11-07 00:57:03 -0500 |
commit | 59c1547a4879d3ca57e7e4c35e12ec8021a0ef58 (patch) | |
tree | 8055473b7a0f56bf909e8672c5dc81d2c3c9f87d | |
parent | c63c932a0572e18611f9cbb0b98c3ca5388dddf5 (diff) | |
download | gtk+-59c1547a4879d3ca57e7e4c35e12ec8021a0ef58.tar.gz |
print dialog: Use an element name for rendering the paper
Use a transient node with name paper instead of a random
collection of style classes for rendering the papers.
-rw-r--r-- | gtk/gtkprintunixdialog.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c index 3f7d6eb908..71b2101c92 100644 --- a/gtk/gtkprintunixdialog.c +++ b/gtk/gtkprintunixdialog.c @@ -56,6 +56,7 @@ #include "gtkprivate.h" #include "gtktypebuiltins.h" #include "gtkdialogprivate.h" +#include "gtkstylecontextprivate.h" /** @@ -2223,10 +2224,7 @@ paint_page (GtkWidget *widget, context = gtk_widget_get_style_context (widget); - gtk_style_context_save (context); - gtk_style_context_add_class (context, GTK_STYLE_CLASS_FRAME); - gtk_style_context_add_class (context, GTK_STYLE_CLASS_PAPER); - gtk_style_context_add_class (context, GTK_STYLE_CLASS_VIEW); + gtk_style_context_save_named (context, "paper"); gtk_render_background (context, cr, x, y, width, height); gtk_render_frame (context, cr, x, y, width, height); |