diff options
author | Benjamin Otte <otte@redhat.com> | 2015-10-10 23:21:45 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-10-10 23:23:34 +0200 |
commit | bddc524cd84b76d1c25c7700eca9d3a25db30cf6 (patch) | |
tree | 6202913b4cc9a107169eac6a46463af6b0e1459a | |
parent | 74e02842bbf832c32fb6d36692b760aefb05682e (diff) | |
download | gtk+-bddc524cd84b76d1c25c7700eca9d3a25db30cf6.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 0217d55b49..5d059a0956 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -1557,6 +1557,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; |