mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-09 12:10:09 +00:00
Set ID on css node right away
Previously, the ID was only set on the CSS node as a side-effect of calling gtk_widget_get_style_context. This was showing up in CSS style tests as nodes lacking their IDs.
This commit is contained in:
parent
0042f9b414
commit
31e97b33e1
@ -8822,6 +8822,8 @@ gtk_widget_set_name (GtkWidget *widget,
|
||||
if (priv->context)
|
||||
gtk_style_context_set_id (priv->context, priv->name);
|
||||
|
||||
gtk_css_node_set_id (priv->cssnode, priv->name);
|
||||
|
||||
g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_NAME]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user