[Gtk-sharp-list] Event when application is about to close
petteri.kautonen at pp.inet.fi
Sun Jan 28 07:58:22 EST 2007
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:
> 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
More information about the Gtk-sharp-list