]> Pileus Git - ~andy/gtk/blobdiff - tests/simple.c
Add call to g_type_init() - we'll need this later, and this makes sure
[~andy/gtk] / tests / simple.c
index f7a0822a08240033e46205bb93cbea2635097a1f..450b3906c273ff77a9d58001cf46d1aab0f71fb8 100644 (file)
@@ -19,6 +19,7 @@ main (int argc, char *argv[])
 
   window = gtk_widget_new (gtk_window_get_type (),
                           "GtkObject::user_data", NULL,
+                          "GtkObject::signal::destroy", gtk_main_quit, NULL,
                           "GtkWindow::type", GTK_WINDOW_TOPLEVEL,
                           "GtkWindow::title", "hello world",
                           "GtkWindow::allow_grow", FALSE,