Re: Alternate main loop?



On 30 Jul 1999 13:18:53 -0400, Craig Anderson <chanders@timing.com> wrote:
>
>How can an alternate event loop be set up
>with GTK?  Something like the following
>code fragment for Xt.
>
>XtAppContext *ac
>XtInputMask xim;
>
>while (xim = XtAppPending(ac))
>	XtAppProcessEvent(ac, xim);

while(gtk_events_pending())
	gtk_main_iteration();

In many cases, you should restructure your program to use callbacks from
the glib main loop, rather than putting in the above hack in your program.

-- Elliot
Who me? I just wander from room to room.



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