Re: orbit2 build, orbit1 work_pending()



Brian Craft <bcboy@thecraftstudio.com> writes:
> Hm... apparently I still don't understand how the glib main loop is
> supposed to work. The docs say "events are global", which I took to
> mean that if a handler is installed for an event source, it would be
> invoked no matter who called g_main_run(). However this doesn't make
> sense in the gtk usage of calling it to make modal dialogs -- events
> on the main window are not handled after the 2nd call. Anyone have a
> clue?

The main window still processes events (such as repaints), it just
discards mouse and keyboard input via a separate mechanism
(gtk_grab_add()). Recursive main loop and modality are orthogonal in
GTK. (Though this seems to surprise most programmers used to other
toolkits.)

Havoc



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