Re: Alternate main loop?
- From: sopwith redhat com (Elliot Lee)
- To: gtk-list redhat com
- Subject: Re: Alternate main loop?
- Date: 30 Jul 1999 17:24:26 GMT
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]