Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2009-04-29 02:41:46 +0400
committerMiguel de Icaza <miguel@gnome.org>2009-04-29 02:41:46 +0400
commit5959cc18ecd4429b8a1f5688356e2af3f517890c (patch)
tree47d57c4d7da5dbdadef9c2878f15fe42b6b3651a
parent46a3af2bf96c400f3b665c5acea88e1e536867bf (diff)
Correct signature, allows for closing the Window
svn path=/trunk/mono-tools/; revision=132903
-rw-r--r--gsharp/MainWindow.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/gsharp/MainWindow.cs b/gsharp/MainWindow.cs
index f362ccf7..027a22da 100644
--- a/gsharp/MainWindow.cs
+++ b/gsharp/MainWindow.cs
@@ -379,10 +379,14 @@ namespace Mono.CSharp.Gui
}
}
- protected virtual void OnDeleteEvent (object o, Gtk.DeleteEventArgs args)
+ protected override bool OnDeleteEvent (Gdk.Event args)
{
- if (!MainClass.Attached)
+ if (!MainClass.Attached){
+ Console.WriteLine ("Quitting");
Application.Quit ();
+ }
+
+ return false;
}
protected virtual void OnDescribeTypeActionActivated (object sender, System.EventArgs e)