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>
Thu, 30 Mar 2023 18:13:19 +0000 (14:13 -0400)
We were notifying ::item when ::child is
changed. Oops

gtk/gtklistitem.c

index 6a357b3dd33cc5d6165682d11dcda6d9ea4dd133..2c54ed976d0fea19739eef572b80e28712ccede4 100644 (file)
@@ -320,7 +320,7 @@ gtk_list_item_set_child (GtkListItem *self,
   if (self->owner)
     gtk_list_item_widget_set_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]);
 }
 
 /**