summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2013-03-16 00:05:03 +0100
committerBenjamin Otte <otte@redhat.com>2013-03-16 00:06:55 +0100
commitf9f6c4fa49cb630f169c2fa4ce6b4ed2b44be8f3 (patch)
tree209479c77fc27843e63cb25919b652be2900e58b /gtk/gtkstylecontext.c
parent69eb272e63cd0f76c34d18761438ea38c1fe8f42 (diff)
downloadgtk+-f9f6c4fa49cb630f169c2fa4ce6b4ed2b44be8f3.tar.gz
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
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r--gtk/gtkstylecontext.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index ad182f2be3..f2c79c8d2e 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);
}
}