listitem: Fix a notification problem
authorMatthias Clasen <mclasen@redhat.com>
Thu, 30 Mar 2023 18:12:54 +0000 (14:12 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Apr 2023 06:48:57 +0000 (08:48 +0200)
We were notifying ::item when ::child is
changed. Oops

gtk/gtklistitem.c

index 28614b62f8fbec25fc2187a475d0833c7cad6776..f8a9e3603696f210a5395a9137cc2b8348181ba1 100644 (file)
@@ -323,7 +323,7 @@ gtk_list_item_set_child (GtkListItem *self,
         gtk_list_item_widget_add_child (self->owner, child);
     }
 
-  g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_ITEM]);
+  g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_CHILD]);
 }
 
 /**