RE: GTK event loop



i want to use gtk+ in my application to provide the gui 
elements and internationalized text -
from what i've seen and played with it looks very good.

the major issue issue i left is that my 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.

i'm sure many others have come across this before - what's 
the best way to resolve it ?


Have a look at gtk_main_iteration_do():
http://developer.gnome.org/doc/API/2.0/gtk/gtk-General.html#gtk-main-iteration-do

and gtk_events_pending():
http://developer.gnome.org/doc/API/2.0/gtk/gtk-General.html#gtk-events-pending


Regards,
Martyn



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