RE: GTK event loop



On Thu, 23 Oct 2003, Freddie Unpenstein wrote:

application is a window manager so it's mostly sitting in a loop
responding to events the gtk documentation i've read indicates that
i must call gtk_main(); to enter the GTK event loop and this call
blocks until the application is terminated.

The GTK main loop does just about everything you need it to.
Monitoring I/O streams, timeouts, idlers, and just about anything else
you can conceive of.

I think the question was really about how to integrate the GTK event loop
with raw Xlib calls/event handling.

Metacity sounds like a good example to check out.

-Peter

"Any fool can write code that a computer can understand. Good programmers write code that
 humans can understand."  -- Martin Fowler



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