Re: [gtk-list] manual mainwindow update..?




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




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