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:
Matthias Clasen 2016-05-04 16:05:40 -04:00
parent bf66cd1e94
commit 1c4e609750

View File

@ -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]);
}
}