[longomatch] Override the DeleteEvent to ask before quiting
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Override the DeleteEvent to ask before quiting
- Date: Mon, 29 Mar 2010 21:36:21 +0000 (UTC)
commit 30a63933b18241ce5d23451c933ad4e30d8aa1bc
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Mar 29 23:33:11 2010 +0200
Override the DeleteEvent to ask before quiting
LongoMatch/Gui/MainWindow.cs | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch/Gui/MainWindow.cs b/LongoMatch/Gui/MainWindow.cs
index 0202069..02dd80f 100644
--- a/LongoMatch/Gui/MainWindow.cs
+++ b/LongoMatch/Gui/MainWindow.cs
@@ -529,15 +529,12 @@ namespace LongoMatch.Gui
{
drawingtoolbox1.Visible = DrawingToolAction.Active;
drawingtoolbox1.DrawingVisibility = DrawingToolAction.Active;
- }
-
- protected virtual void OnUnrealized(object sender, System.EventArgs e) {
- CloseAndQuit();
}
- protected virtual void OnDeleteEvent(object o, Gtk.DeleteEventArgs args)
+ protected override bool OnDeleteEvent (Gdk.Event evnt)
{
- CloseAndQuit();
+ CloseAndQuit();
+ return true;
}
#endregion }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]