Re: gobject singal firing order



Stefan Kost wrote:
hi,

when I do an g_object_set() while having a handler connected to the notify:: signal. Is the notify handler triggered before the g_object_set() returns or just soon afterwards?
Is this deterministic?

When g_signal_emit() returns, all handlers have been called.

It may look weird in the source in regards with g_object_set()
because in g_object_set(), all the properties in the va_list
are set first, and a list of "notify" signals are "accumulated",
they are emitted after applying the properties but before
returning from g_object_set().

Cheers,
                             -Tristan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]