Bug in g_object_notify_queue_thaw?



I did not receive a property notification when the label property of a GtkButton 
was changed but did receive a property notification for the property change on 
the GtkLabel.

I investigated this and it looks like a bug in g_object_notify_queue_thaw().
Can I apply the patch below?

Padraig


Index: gobjectnotifyqueue.c
===================================================================
RCS file: /cvs/gnome/glib/gobject/gobjectnotifyqueue.c,v
retrieving revision 1.2
diff -u -p -r1.2 gobjectnotifyqueue.c
--- gobjectnotifyqueue.c        2001/06/22 14:10:33     1.2
+++ gobjectnotifyqueue.c        2001/07/23 16:01:56
@@ -104,6 +104,10 @@ g_object_notify_queue_thaw (GObject     
   g_return_if_fail (object->ref_count > 0);
 
   pspecs = nqueue->n_pspecs > 16 ? free_me = g_new (GParamSpec*, 
nqueue->n_pspecs) : pspecs_mem;
+  /*
+   * NULLify first element in case it already contains the first GParamSpec
+   */
+  pspecs[0] = NULL;
   for (slist = nqueue->pspecs; slist; slist = slist->next)
     {
       GParamSpec *pspec = slist->data;





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