[Gtk-sharp-list] Event when application is about to close
Petteri Kautonen
petteri.kautonen at pp.inet.fi
Sun Jan 28 07:58:22 EST 2007
Hi again,
I found the answer my self:
even handler to Gtk.Widget.DeleteEvent:
void MainWindowDeleteEvent(object o, DeleteEventArgs args)
{
args.RetVal = true;
}
When the RetVal is true the application refuses to close.
Petteri Kautonen wrote:
> Hi,
> I have an application that handles several opened files. When
> application is about to close the user should be asked whether to save
> possible changes to these files before actually allow the application
> to close. What would be the correct event to handle this?
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
More information about the Gtk-sharp-list
mailing list