[Spice-devel] [PATCH spice-gtk 4/8] Notify when property changed

Christophe Fergeau cfergeau at redhat.com
Wed Nov 23 06:38:16 PST 2011


On Wed, Nov 23, 2011 at 03:17:46PM +0100, Marc-André Lureau wrote:
> Hi
> 
> On Wed, Nov 23, 2011 at 3:13 PM, Hans de Goede <hdegoede at redhat.com> wrote:
> > Hmm, I don't think this is necessary:
> > 1) AFAIK gobject will do the notify itself after calling the property
> > setting,
> 
> No it doesn't, you have to do it yourself

Are you sure about that?
http://developer.gnome.org/gobject/stable/gobject-properties.html says

"Once the property has been set by the object's set_property class method,
the code path returns to g_object_set_property which makes sure that the
"notify" signal is emitted on the object's instance with the changed
property as parameter unless notifications were frozen by
g_object_freeze_notify."

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20111123/389ed328/attachment.pgp>


More information about the Spice-devel mailing list