mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-05-11 21:12:16 +00:00
Just adding proper window closing to TestDnD.cs
svn path=/trunk/gtk-sharp/; revision=22306
This commit is contained in:
parent
4baa6d76e0
commit
72968de0ac
|
@ -478,7 +478,7 @@ public class TestDnd {
|
||||||
Application.Init ();
|
Application.Init ();
|
||||||
|
|
||||||
window = new Gtk.Window (Gtk.WindowType.Toplevel);
|
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);
|
table = new Table (2, 2, false);
|
||||||
window.Add (table);
|
window.Add (table);
|
||||||
|
@ -537,4 +537,9 @@ public class TestDnd {
|
||||||
|
|
||||||
Application.Run ();
|
Application.Run ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void OnDelete (object o, DeleteEventArgs e)
|
||||||
|
{
|
||||||
|
Application.Quit ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue