From: Tim Janik Date: Wed, 28 Mar 2001 15:26:19 +0000 (+0000) Subject: only queue readable properties for notification changes. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=f3848154aeff935e670781193823955d0df19c38;p=dana%2Fcg-glib.git 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. --- diff --git a/docs/reference/glib/tmpl/macros_misc.sgml b/docs/reference/glib/tmpl/macros_misc.sgml index a7768c73..994ffb73 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 d59e807b..43745c92 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 f3e0e49f..7590c4ca 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