[9114] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: manual mainwindow update..?
daemon@ATHENA.MIT.EDU (Havoc Pennington)
Thu Oct 8 23:45:13 1998
Date: Thu, 8 Oct 1998 22:44:43 -0500 (CDT)
From: Havoc Pennington <rhpennin@midway.uchicago.edu>
To: GTK List <gtk-list@redhat.com>
In-Reply-To: <Pine.LNX.3.96LJ1.1b7.981009115253.2090H-100000@ume.pht.co.jp>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
On Fri, 9 Oct 1998, Scott Stone wrote:
>
> Is there a way to make a routine run the main 'update' routine (a la
> GtkMain) by itself, ie, to wait for dialog input?
gtk_main();
;-) (seriously, you can run it any number of times. Each call blocks until
you gtk_main_quit(). Be careful not to get your dialog killed without a
gtk_main_quit(), or your program will weirdly require the user to click
"Exit" twice.)
You can also do:
while (gtk_events_pending())
gtk_main_iteration();
if you want to do stuff in between main event loop loops.
Havoc
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null