RE: GTK event loop
- From: <martyn 2 russell bt com>
- To: <gtk callum com>, <gtk-app-devel-list gnome org>
- Subject: RE: GTK event loop
- Date: Thu, 23 Oct 2003 09:52:45 +0100
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]