diff options
author | Benjamin Otte <otte@redhat.com> | 2015-02-10 02:50:57 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-03-18 15:23:31 +0100 |
commit | 2694545468cdcee127d2b17d9b01d51f2cd8ce6f (patch) | |
tree | e73f67bd9e12cd34f5a7ae5acc6ccf2f7f241887 /gtk/gtkcsswidgetnode.c | |
parent | ee91fb71ca5073d30bf7d4f651798d802f7bfa7f (diff) | |
download | gtk+-2694545468cdcee127d2b17d9b01d51f2cd8ce6f.tar.gz |
cssnode: Add visibility concept
This allows hiding nodes of invisible widgets.
And that in turn makes sure :nth-child() works as expected.
Diffstat (limited to 'gtk/gtkcsswidgetnode.c')
-rw-r--r-- | gtk/gtkcsswidgetnode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcsswidgetnode.c b/gtk/gtkcsswidgetnode.c index 5c89a98124..d142c93e10 100644 --- a/gtk/gtkcsswidgetnode.c +++ b/gtk/gtkcsswidgetnode.c @@ -294,6 +294,8 @@ gtk_css_widget_node_new (GtkWidget *widget) result = g_object_new (GTK_TYPE_CSS_WIDGET_NODE, NULL); result->widget = widget; + gtk_css_node_set_visible (GTK_CSS_NODE (result), + gtk_widget_get_visible (widget)); return GTK_CSS_NODE (result); } |