[gtk+/wip/cssvalue: 21/141] stylecontext: Use _gtk_style_context_queue_invalidate() on self
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/cssvalue: 21/141] stylecontext: Use _gtk_style_context_queue_invalidate() on self
- Date: Sat, 7 Apr 2012 17:47:55 +0000 (UTC)
commit ed4420a428715e3b1485dcaf1729c8af3ab9eb0a
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]