[gtk+] css node: Stop extraneous change notification



commit 1c4e60975024463ffa354cbebc51346917ccc2ac
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed May 4 16:05:40 2016 -0400

    css node: Stop extraneous change notification
    
    The ::name and ::widget-type properties are entirely independent,
    no need to notify both when either changes.

 gtk/gtkcssnode.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssnode.c b/gtk/gtkcssnode.c
index 46a02f0..917cd56 100644
--- a/gtk/gtkcssnode.c
+++ b/gtk/gtkcssnode.c
@@ -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]);
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]