Re: widget's signal callback: inside gdk lock?



Fe Kater wrote:
Hi,

I wonder if the callback function I connect to a widget's signal (like
"toggled" signal of a checkbutton) is already inside the gdk lock--or if I
have to take care of gdk_threads_enter/leave with any code inside this
callback function?

    Since signals are run synchronously (i.e. they are not deffered to
the main loop as events, as some tend to imagine) they are always the
result of the signal's object being accessed, so if the object is a gdk
or gtk object; then the lock must be aquired first (making those signal
callbacks run inside the lock).

Cheers,
                                 -Tristan




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