only queue readable properties for notification changes.
authorTim Janik <timj@gtk.org>
Wed, 28 Mar 2001 15:26:19 +0000 (15:26 +0000)
committerTim Janik <timj@src.gnome.org>
Wed, 28 Mar 2001 15:26:19 +0000 (15:26 +0000)
Wed Mar 28 17:04:06 2001  Tim Janik  <timj@gtk.org>

        * gobject.c (object_queue_property): only queue readable properties
        for notification changes.

docs/reference/glib/tmpl/macros_misc.sgml
gobject/ChangeLog
gobject/gobject.c

index a7768c7..994ffb7 100644 (file)
@@ -66,6 +66,7 @@ only one statement is expected by the compiler.
 Portable way to copy <type>va_list</type> variables.
 </para>
 
+<!-- # Unused Parameters # -->
 @ap1: the <type>va_list</type> variable to place a copy of @ap2 in.
 @ap2: a <type>va_list</type>.
 
index d59e807..43745c9 100644 (file)
@@ -1,3 +1,8 @@
+Wed Mar 28 17:04:06 2001  Tim Janik  <timj@gtk.org>
+
+       * gobject.c (object_queue_property): only queue readable properties
+       for notification changes.
+
 Thu Mar 22 13:36:50 2001  Tim Janik  <timj@gtk.org>
 
        * gsignal.c (g_signal_newv): catch G_SIGNAL_RUN_FIRST with a return value.
index f3e0e49..7590c4c 100644 (file)
@@ -387,9 +387,12 @@ object_queue_property (GObject     *object,
                       GParamSpec  *pspec,
                       NotifyQueue *nqueue)
 {
-  /* we will dedup later */
-  nqueue->pspecs = g_slist_prepend (nqueue->pspecs, pspec);
-  nqueue->n_pspecs++;
+  if (pspec->flags & G_PARAM_READABLE)
+    {
+      /* we will dedup later */
+      nqueue->pspecs = g_slist_prepend (nqueue->pspecs, pspec);
+      nqueue->n_pspecs++;
+    }
 }
 
 static void