Re: gtk_main in gtk appilcation?



On Tue, Jan 24, 2006 at 09:36:26AM -0800, yinglcs2 yahoo com wrote:
> Why all the main of gtk application ends with calling
> gtk_main()?

gtk_main() transfers control to Gtk+ event loop. See
http://developer.gnome.org/doc/API/2.0/gtk/gtk-General.html#desc

It does not have to be the last thing in main(), programs
may want to perform some clean-up after return from
gtk_main().

> And is that function a blocking function? (i.e. it
> will never return)?

It returns when gtk_main_quit() is called, see
http://developer.gnome.org/doc/API/2.0/gtk/gtk-General.html#gtk-main
Normally, gtk_main_quit() is called to end the GUI (and
consequently the app).

Yeti


--
That's enough.



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