[gtk+/wip/cssvalue: 21/165] stylecontext: Use _gtk_style_context_queue_invalidate() on self



commit a43aafa3ff5bf3fd8377f65c6d9d34132d8fb606
Author: Benjamin Otte <otte redhat com>
Date:   Tue Mar 20 03:21:10 2012 +0100

    stylecontext: Use _gtk_style_context_queue_invalidate() on self

 gtk/gtkstylecontext.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 1b27dfa..d7631b2 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -1045,6 +1045,8 @@ _gtk_style_context_set_widget (GtkStyleContext *context,
   g_return_if_fail (widget == NULL || GTK_IS_WIDGET (widget));
 
   context->priv->widget = widget;
+
+  _gtk_style_context_queue_invalidate (context, GTK_CSS_CHANGE_ANY_SELF);
 }
 
 /**
@@ -1529,7 +1531,7 @@ gtk_style_context_set_path (GtkStyleContext *context,
   if (path)
     priv->widget_path = gtk_widget_path_copy (path);
 
-  gtk_style_context_invalidate (context);
+  _gtk_style_context_queue_invalidate (context, GTK_CSS_CHANGE_ANY);
 }
 
 /**
@@ -1598,7 +1600,7 @@ gtk_style_context_set_parent (GtkStyleContext *context,
   priv->parent = parent;
 
   g_object_notify (G_OBJECT (context), "parent");
-  gtk_style_context_invalidate (context);
+  _gtk_style_context_queue_invalidate (context, GTK_CSS_CHANGE_ANY_PARENT | GTK_CSS_CHANGE_ANY_SIBLING);
 }
 
 /**



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