[gtk/wip/baedert/for-master] button: Use g_object_notify_by_pspec()



commit e976825342510f1c019589eef2fb63742ece44eb
Author: Timm Bäder <mail baedert org>
Date:   Sat Aug 1 15:34:07 2020 +0200

    button: Use g_object_notify_by_pspec()

 gtk/gtkbutton.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index d85d65ca48..ca2d0607d9 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -1035,7 +1035,7 @@ gtk_button_set_child (GtkButton *button,
     gtk_widget_set_parent (priv->child, GTK_WIDGET (button));
 
   gtk_button_set_child_type (button, WIDGET_CHILD);
-  g_object_notify (G_OBJECT (button), "child");
+  g_object_notify_by_pspec (G_OBJECT (button), props[PROP_CHILD]);
 }
 
 /**


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