fix unconditional check of first GParamSpec in
authorPadraig O'Briain <padraigo@src.gnome.org>
Mon, 23 Jul 2001 17:08:24 +0000 (17:08 +0000)
committerPadraig O'Briain <padraigo@src.gnome.org>
Mon, 23 Jul 2001 17:08:24 +0000 (17:08 +0000)
* gobject/gobjectnotifyqueue.c: fix unconditional check of
first GParamSpec in g_object_notify_queue_thaw(); prevent
property notification being lost

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gobject/gobjectnotifyqueue.c

index 534c777..c584514 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-07-23  Padraig O'Briain  <Padraig.Obriain@sun.com>
+
+       * gobject/gobjectnotifyqueue.c: fix unconditional check of
+       first GParamSpec in g_object_notify_queue_thaw(); prevent
+       property notification being lost
+
 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: fixed g_io_channel_seek_position() so that
index 534c777..c584514 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-23  Padraig O'Briain  <Padraig.Obriain@sun.com>
+
+       * gobject/gobjectnotifyqueue.c: fix unconditional check of
+       first GParamSpec in g_object_notify_queue_thaw(); prevent
+       property notification being lost
+
 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: fixed g_io_channel_seek_position() so that
index 534c777..c584514 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-23  Padraig O'Briain  <Padraig.Obriain@sun.com>
+
+       * gobject/gobjectnotifyqueue.c: fix unconditional check of
+       first GParamSpec in g_object_notify_queue_thaw(); prevent
+       property notification being lost
+
 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: fixed g_io_channel_seek_position() so that
index 534c777..c584514 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-23  Padraig O'Briain  <Padraig.Obriain@sun.com>
+
+       * gobject/gobjectnotifyqueue.c: fix unconditional check of
+       first GParamSpec in g_object_notify_queue_thaw(); prevent
+       property notification being lost
+
 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: fixed g_io_channel_seek_position() so that
index 534c777..c584514 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-23  Padraig O'Briain  <Padraig.Obriain@sun.com>
+
+       * gobject/gobjectnotifyqueue.c: fix unconditional check of
+       first GParamSpec in g_object_notify_queue_thaw(); prevent
+       property notification being lost
+
 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: fixed g_io_channel_seek_position() so that
index 534c777..c584514 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-23  Padraig O'Briain  <Padraig.Obriain@sun.com>
+
+       * gobject/gobjectnotifyqueue.c: fix unconditional check of
+       first GParamSpec in g_object_notify_queue_thaw(); prevent
+       property notification being lost
+
 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: fixed g_io_channel_seek_position() so that
index 534c777..c584514 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-23  Padraig O'Briain  <Padraig.Obriain@sun.com>
+
+       * gobject/gobjectnotifyqueue.c: fix unconditional check of
+       first GParamSpec in g_object_notify_queue_thaw(); prevent
+       property notification being lost
+
 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: fixed g_io_channel_seek_position() so that
index 534c777..c584514 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-23  Padraig O'Briain  <Padraig.Obriain@sun.com>
+
+       * gobject/gobjectnotifyqueue.c: fix unconditional check of
+       first GParamSpec in g_object_notify_queue_thaw(); prevent
+       property notification being lost
+
 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: fixed g_io_channel_seek_position() so that
index 940a231..ef3cbce 100644 (file)
@@ -104,6 +104,8 @@ g_object_notify_queue_thaw (GObject            *object,
   g_return_if_fail (object->ref_count > 0);
 
   pspecs = nqueue->n_pspecs > 16 ? free_me = g_new (GParamSpec*, nqueue->n_pspecs) : pspecs_mem;
+  /* set first entry to NULL since it's checked unconditionally */
+  pspecs[0] = NULL;
   for (slist = nqueue->pspecs; slist; slist = slist->next)
     {
       GParamSpec *pspec = slist->data;