summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-01-03 15:34:08 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-01-03 15:36:48 -0500
commit2e921691d97c203e172cddd18aead9eb90904770 (patch)
tree1b520c89e048225fd5a2875e297f231a9743bd33 /gtk/gtkstylecontext.h
parentd0e648d4f67ae485727c0452921c18f7642b80de (diff)
downloadgtk+-2e921691d97c203e172cddd18aead9eb90904770.tar.gz
Redo CSS style printing
Drop the custom style printing implementation in gtkcssnode.c and instead reuse the existing gtk_css_style_print function, extending it a bit to suit our needs. Instead of computing values, just recognize initial values by having no CSS section. Also do away with the show-initial flag, and just always filter out initial values. The flag can come back when it is needed.
Diffstat (limited to 'gtk/gtkstylecontext.h')
-rw-r--r--gtk/gtkstylecontext.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h
index d6fe5754f7..e3481b8123 100644
--- a/gtk/gtkstylecontext.h
+++ b/gtk/gtkstylecontext.h
@@ -1211,8 +1211,7 @@ void gtk_draw_insertion_cursor (GtkWidget *widget,
typedef enum {
GTK_STYLE_CONTEXT_PRINT_NONE = 0,
GTK_STYLE_CONTEXT_PRINT_RECURSE = 1 << 0,
- GTK_STYLE_CONTEXT_PRINT_SHOW_STYLE = 1 << 1,
- GTK_STYLE_CONTEXT_PRINT_SHOW_INITIAL = 1 << 2
+ GTK_STYLE_CONTEXT_PRINT_SHOW_STYLE = 1 << 1
} GtkStyleContextPrintFlags;
GDK_AVAILABLE_IN_3_20