Just adding proper window closing to TestDnD.cs
svn path=/trunk/gtk-sharp/; revision=22306
This commit is contained in:
parent
4baa6d76e0
commit
72968de0ac
1 changed files with 6 additions and 1 deletions
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue