forked from AuroraMiddleware/gtk
css node: Stop extraneous change notification
The ::name and ::widget-type properties are entirely independent, no need to notify both when either changes.
This commit is contained in:
parent
bf66cd1e94
commit
1c4e609750
@ -1110,7 +1110,6 @@ gtk_css_node_set_name (GtkCssNode *cssnode,
|
||||
{
|
||||
gtk_css_node_invalidate (cssnode, GTK_CSS_CHANGE_NAME);
|
||||
g_object_notify_by_pspec (G_OBJECT (cssnode), cssnode_properties[PROP_NAME]);
|
||||
g_object_notify_by_pspec (G_OBJECT (cssnode), cssnode_properties[PROP_WIDGET_TYPE]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1127,7 +1126,6 @@ gtk_css_node_set_widget_type (GtkCssNode *cssnode,
|
||||
if (gtk_css_node_declaration_set_type (&cssnode->decl, widget_type))
|
||||
{
|
||||
gtk_css_node_invalidate (cssnode, GTK_CSS_CHANGE_NAME);
|
||||
g_object_notify_by_pspec (G_OBJECT (cssnode), cssnode_properties[PROP_NAME]);
|
||||
g_object_notify_by_pspec (G_OBJECT (cssnode), cssnode_properties[PROP_WIDGET_TYPE]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user