Just adding proper window closing to TestDnD.cs

svn path=/trunk/gtk-sharp/; revision=22306
This commit is contained in:
Todd Berman 2004-01-20 18:01:55 +00:00
parent 4baa6d76e0
commit 72968de0ac

View file

@ -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 ();
}
}