cssnode: Add visibility concept
This allows hiding nodes of invisible widgets. And that in turn makes sure :nth-child() works as expected.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user