diff options
author | Miguel de Icaza <miguel@gnome.org> | 2009-04-29 02:41:46 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2009-04-29 02:41:46 +0400 |
commit | 5959cc18ecd4429b8a1f5688356e2af3f517890c (patch) | |
tree | 47d57c4d7da5dbdadef9c2878f15fe42b6b3651a | |
parent | 46a3af2bf96c400f3b665c5acea88e1e536867bf (diff) |
Correct signature, allows for closing the Window
svn path=/trunk/mono-tools/; revision=132903
-rw-r--r-- | gsharp/MainWindow.cs | 8 |
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) |