[gtk+] GtkStyleContext: Invalidate contexts with a path



commit 94e0f1c78df67870a8f97d6f4f9af6809a7c9b3e
Author: Volker Sobek <reklov live com>
Date:   Wed Dec 18 00:04:59 2013 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 9f35f42..21b3d6e 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]