diff options
author | Benjamin Otte <otte@redhat.com> | 2015-10-10 23:21:45 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-10-12 13:26:24 -0400 |
commit | 83427240220c0fb412140a169560516a1edcc250 (patch) | |
tree | 364640654bec01c970e19dde5e82a6dbf1b00e6c | |
parent | 78a59caed9ffd95e73c2ccf957b808a061553084 (diff) | |
download | gtk+-83427240220c0fb412140a169560516a1edcc250.tar.gz |
stylecontext: Make sure style is valid when looking up style properties
Otherwise, the validation may happen vey automatically some time during
the style property and that will most likely cause a crash.
https://bugzilla.gnome.org/show_bug.cgi?id=756338
-rw-r--r-- | gtk/gtkstylecontext.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index 9176c02741..f8822c19cc 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -1621,6 +1621,9 @@ _gtk_style_context_peek_style_property (GtkStyleContext *context, priv = context->priv; + /* ensure the style cache is valid by forcing a validation */ + gtk_style_context_lookup_style (context); + key.widget_type = widget_type; key.pspec = pspec; |