Author: lupus
Date: 2007-06-05 11:14:03 -0400 (Tue, 05 Jun 2007)
New Revision: 78638

Modified:
   trunk/moon/src/demo.cpp
Log:
Close the window correctly.



Modified: trunk/moon/src/demo.cpp
===================================================================
--- trunk/moon/src/demo.cpp     2007-06-05 15:11:22 UTC (rev 78637)
+++ trunk/moon/src/demo.cpp     2007-06-05 15:14:03 UTC (rev 78638)
@@ -42,6 +42,13 @@
        return TRUE;
 }
 
+static gboolean
+delete_event (GtkWidget *widget, GdkEvent *e, gpointer data)
+{
+       gtk_main_quit ();
+       return 1;
+}
+
 int
 main (int argc, char *argv [])
 {
@@ -54,6 +61,7 @@
        runtime_init ();
 
        w = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+       gtk_signal_connect (GTK_OBJECT (w), "delete_event", G_CALLBACK 
(delete_event), NULL);
 
        // Create our objects
        r_trans = new RotateTransform ();

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to