Re: gtk_main in gtk appilcation?

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

 



On Tue, Jan 24, 2006 at 09:36:26AM -0800, yinglcs2@xxxxxxxxx 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.
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux