[gtk+/gtk-3-10] GtkStyleContext: Invalidate contexts with a path



commit 173a2897299049dbda8e9ecdeff945b5b0ef64ec
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 cf7ea20..464e6b9 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -3371,7 +3371,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)
     {
       gtk_style_context_invalidate (context);
     }


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