From 94e0f1c78df67870a8f97d6f4f9af6809a7c9b3e Mon Sep 17 00:00:00 2001 From: Volker Sobek Date: Wed, 18 Dec 2013 00:04:59 +0100 Subject: [PATCH] GtkStyleContext: Invalidate contexts with a path Fixes a tiny typo in commit f51c9d4154ba1ce4f20f7c4b7f705fe2756cb8ab which manifested itself in GtkSpinButton's panels being drawn with an incorrect, not updated state. This patch took me more hours than you might think! :P https://bugzilla.gnome.org/show_bug.cgi?id=709491 --- gtk/gtkstylecontext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index 9f35f42c82..21b3d6ead4 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -3373,7 +3373,7 @@ _gtk_style_context_queue_invalidate (GtkStyleContext *context, priv->pending_changes |= change; gtk_style_context_set_invalid (context, TRUE); } - else if (priv->widget_path == NULL) + else if (priv->widget_path != NULL) { G_GNUC_BEGIN_IGNORE_DEPRECATIONS; gtk_style_context_invalidate (context);