[Gtk-sharp-list] How do I keep main window from closing?
bdubu
bwb at fireflysoftware.com
Tue Jul 21 23:09:24 EDT 2009
Chris Howie wrote:
>
> I did some testing on this and determined the following:
>
> * [GLib.ConnectBefore] is not necessary to disallow closing of the window.
>
> * In order to properly continue with destruction of the window, do this:
>
> args.RetVal = false;
> Application.Quit();
>
> * In order to disallow closing of the window, do this:
>
> args.RetVal = true;
> // Do *not* call Application.Quit()
>
Yahoo! That did it for me. I was really stuck on that one. Hey, thanks a
million to each of you for helping me out here.
--
View this message in context: http://www.nabble.com/How-do-I-keep-main-window-from-closing--tp24578770p24599360.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list
mailing list