summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-01-21 14:43:31 +0100
committerBenjamin Otte <otte@redhat.com>2020-01-21 14:49:25 +0100
commite6a0a2f5877083e9b726e4f5edf96531ff23c061 (patch)
tree0104eacd0ab8fdb444e8599d37acfe292b1c2b42 /gtk/gtkstylecontext.c
parent631ea5caac8966f579743a936d27c6969751e9e1 (diff)
downloadgtk+-e6a0a2f5877083e9b726e4f5edf96531ff23c061.tar.gz
stylecontext: Remove excess gtk_css_node_invalidate() call
This call is not necessary, because gtk_css_node_set_parent() does the right thing. (It probably hasn't been necessary for years, but I'm not gonna try my luck on GTK3 at this stage.) This code is usually called the first time gtk_widget_get_style_context() is called on a widget and its style context gets create. At that point however, the css nodes are in the right place already, so no invalidation should happen.
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r--gtk/gtkstylecontext.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 7e7deabb9a..717dce8437 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -1035,7 +1035,6 @@ gtk_style_context_set_parent (GtkStyleContext *context,
priv->parent = parent;
g_object_notify_by_pspec (G_OBJECT (context), properties[PROP_PARENT]);
- gtk_css_node_invalidate (gtk_style_context_get_root (context), GTK_CSS_CHANGE_ANY_PARENT | GTK_CSS_CHANGE_ANY_SIBLING);
}
/**