From 72968de0ac5e20aaf13819a50e3f1dc1c6ff56cc Mon Sep 17 00:00:00 2001 From: Todd Berman Date: Tue, 20 Jan 2004 18:01:55 +0000 Subject: [PATCH] Just adding proper window closing to TestDnD.cs svn path=/trunk/gtk-sharp/; revision=22306 --- sample/TestDnd.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sample/TestDnd.cs b/sample/TestDnd.cs index bc7eeb761..e3a36ead1 100644 --- a/sample/TestDnd.cs +++ b/sample/TestDnd.cs @@ -478,7 +478,7 @@ public class TestDnd { Application.Init (); window = new Gtk.Window (Gtk.WindowType.Toplevel); - //g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); + window.DeleteEvent += new DeleteEventHandler (OnDelete); table = new Table (2, 2, false); window.Add (table); @@ -537,4 +537,9 @@ public class TestDnd { Application.Run (); } + + private static void OnDelete (object o, DeleteEventArgs e) + { + Application.Quit (); + } }