[gtk+/gtk-3-8] stylecontext: Do invalidation on first resize container
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-8] stylecontext: Do invalidation on first resize container
- Date: Fri, 15 Mar 2013 23:11:36 +0000 (UTC)
commit 79f527b2230d252eb1017506b4be3b2e7ecdd9ba
Author: Benjamin Otte <otte redhat com>
Date: Sat Mar 16 00:05:03 2013 +0100
stylecontext: Do invalidation on first resize container
... instead of taking the last one we find. This is necessary as
attached widgets (mostly menus) can be attached to an invisible widget,
but we still want to invalidate styles for them.
https://bugzilla.gnome.org/show_bug.cgi?id=695772
gtk/gtkstylecontext.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index ad182f2..f2c79c8 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -1071,10 +1071,10 @@ gtk_style_context_set_invalid (GtkStyleContext *context,
if (invalid)
{
- if (priv->parent)
- gtk_style_context_set_invalid (priv->parent, TRUE);
- else if (GTK_IS_RESIZE_CONTAINER (priv->widget))
+ if (GTK_IS_RESIZE_CONTAINER (priv->widget))
_gtk_container_queue_restyle (GTK_CONTAINER (priv->widget));
+ else if (priv->parent)
+ gtk_style_context_set_invalid (priv->parent, TRUE);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]