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

Re: calling main_quit from signal_connect - is it possible/legal ?



Sergei Steshenko <sergstesh yahoo com> writes:
>
> If Gtk2->main_quit is executed immediately, is control passed back to the
> anonymous sub containing the call, i.e. will the next statement after
> Gtk2->main_quit be executed ?

main_quit basically sets a flag asking Gtk2->main() to return, when
execution gets back to it.

> it looks like some events are either lost or are recognized out of
> order.

Sounds unlikely, unless there's some slack widget code.  (You can see
that for example in the mozilla scrollbars which do some later
get_pointer() or something and thus don't respect a button release
position after coming back from a long calculation ...)


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