From f3848154aeff935e670781193823955d0df19c38 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Wed, 28 Mar 2001 15:26:19 +0000 Subject: [PATCH] only queue readable properties for notification changes. Wed Mar 28 17:04:06 2001 Tim Janik * gobject.c (object_queue_property): only queue readable properties for notification changes. --- docs/reference/glib/tmpl/macros_misc.sgml | 1 + gobject/ChangeLog | 5 +++++ gobject/gobject.c | 9 ++++++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/reference/glib/tmpl/macros_misc.sgml b/docs/reference/glib/tmpl/macros_misc.sgml index a7768c7..994ffb7 100644 --- a/docs/reference/glib/tmpl/macros_misc.sgml +++ b/docs/reference/glib/tmpl/macros_misc.sgml @@ -66,6 +66,7 @@ only one statement is expected by the compiler. Portable way to copy va_list variables. + @ap1: the va_list variable to place a copy of @ap2 in. @ap2: a va_list. diff --git a/gobject/ChangeLog b/gobject/ChangeLog index d59e807..43745c9 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 28 17:04:06 2001 Tim Janik + + * gobject.c (object_queue_property): only queue readable properties + for notification changes. + Thu Mar 22 13:36:50 2001 Tim Janik * gsignal.c (g_signal_newv): catch G_SIGNAL_RUN_FIRST with a return value. diff --git a/gobject/gobject.c b/gobject/gobject.c index f3e0e49..7590c4c 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -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 -- 2.7.4