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 - [email protected]
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
_______________________________________________
Gtk-sharp-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list