Hello all.

I'm another gtk# newbie trying to really figure out what is going on. Here's my question.

I've noticed two different ways of closing a gtk# application. One is, on the delete event of the main window, to call Application.Quit(). And this closes down the app just fine here on my windows machine. However, I've noticed other places that something else is added, as in the following (which is taken from http://go-mono.com/docs/index.aspx?link=root:/classlib-gnome):

    static void Window_Delete (object obj, DeleteEventArgs args)
    {
         SignalArgs sa = (SignalArgs) args;
         Application.Quit ();
         sa.RetVal = true;
    }

I know that SignalArgs is for "Arguments and return value for signal", but what is it really doing here? Is it necessary to both Quit() and use the SignalArgs? What are we signalling that Application.Quit() isn't signalling? I'm sure this isn't a huge earth-shattering issue, but I am quite curious. Thanks.

Eric Sowell
[EMAIL PROTECTED]
[EMAIL PROTECTED]

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to