]> Pileus Git - ~andy/gtk/commitdiff
tests/testtreecolumns.c quit the main loop when the window is destroyed.
authorSven Neumann <sven@gimp.org>
Fri, 26 Apr 2002 19:50:17 +0000 (19:50 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Fri, 26 Apr 2002 19:50:17 +0000 (19:50 +0000)
2002-04-26  Sven Neumann  <sven@gimp.org>

        * tests/testtreecolumns.c
        * tests/testtreeview.c: quit the main loop when the window is
        destroyed. Removed compiler warnings about wrong format in printf().

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
tests/testtreecolumns.c
tests/testtreeview.c

index 4838e9190d1b84d2ce523d05f6c020b69b381833..0e22e265ce8e60c446f48dd9fff6f4a4b94c0f9a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-04-26  Sven Neumann  <sven@gimp.org>
+        * tests/testtreecolumns.c
+        * tests/testtreeview.c: quit the main loop when the window is
+        destroyed. Removed compiler warnings about wrong format in printf().
 Fri Apr 26 21:46:42 2002  Kristian Rietveld  <kris@gtk.org>
 
        This commit fixes binary compatibility, which I broke with my
index 4838e9190d1b84d2ce523d05f6c020b69b381833..0e22e265ce8e60c446f48dd9fff6f4a4b94c0f9a 100644 (file)
@@ -1,3 +1,9 @@
+2002-04-26  Sven Neumann  <sven@gimp.org>
+        * tests/testtreecolumns.c
+        * tests/testtreeview.c: quit the main loop when the window is
+        destroyed. Removed compiler warnings about wrong format in printf().
 Fri Apr 26 21:46:42 2002  Kristian Rietveld  <kris@gtk.org>
 
        This commit fixes binary compatibility, which I broke with my
index 4838e9190d1b84d2ce523d05f6c020b69b381833..0e22e265ce8e60c446f48dd9fff6f4a4b94c0f9a 100644 (file)
@@ -1,3 +1,9 @@
+2002-04-26  Sven Neumann  <sven@gimp.org>
+        * tests/testtreecolumns.c
+        * tests/testtreeview.c: quit the main loop when the window is
+        destroyed. Removed compiler warnings about wrong format in printf().
 Fri Apr 26 21:46:42 2002  Kristian Rietveld  <kris@gtk.org>
 
        This commit fixes binary compatibility, which I broke with my
index 4838e9190d1b84d2ce523d05f6c020b69b381833..0e22e265ce8e60c446f48dd9fff6f4a4b94c0f9a 100644 (file)
@@ -1,3 +1,9 @@
+2002-04-26  Sven Neumann  <sven@gimp.org>
+        * tests/testtreecolumns.c
+        * tests/testtreeview.c: quit the main loop when the window is
+        destroyed. Removed compiler warnings about wrong format in printf().
 Fri Apr 26 21:46:42 2002  Kristian Rietveld  <kris@gtk.org>
 
        This commit fixes binary compatibility, which I broke with my
index 4838e9190d1b84d2ce523d05f6c020b69b381833..0e22e265ce8e60c446f48dd9fff6f4a4b94c0f9a 100644 (file)
@@ -1,3 +1,9 @@
+2002-04-26  Sven Neumann  <sven@gimp.org>
+        * tests/testtreecolumns.c
+        * tests/testtreeview.c: quit the main loop when the window is
+        destroyed. Removed compiler warnings about wrong format in printf().
 Fri Apr 26 21:46:42 2002  Kristian Rietveld  <kris@gtk.org>
 
        This commit fixes binary compatibility, which I broke with my
index 4838e9190d1b84d2ce523d05f6c020b69b381833..0e22e265ce8e60c446f48dd9fff6f4a4b94c0f9a 100644 (file)
@@ -1,3 +1,9 @@
+2002-04-26  Sven Neumann  <sven@gimp.org>
+        * tests/testtreecolumns.c
+        * tests/testtreeview.c: quit the main loop when the window is
+        destroyed. Removed compiler warnings about wrong format in printf().
 Fri Apr 26 21:46:42 2002  Kristian Rietveld  <kris@gtk.org>
 
        This commit fixes binary compatibility, which I broke with my
index fb15a9ec7442de0d7a2fa58d99337eb9638c3758..b2e0d8291168d93c5e09f1d6fbd73a8cb7e79770 100644 (file)
@@ -770,6 +770,7 @@ main (int argc, char *argv[])
 
   /* Set up the test windows. */
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); 
   gtk_window_set_default_size (GTK_WINDOW (window), 300, 300);
   gtk_window_set_title (GTK_WINDOW (window), "Top Window");
   swindow = gtk_scrolled_window_new (NULL, NULL);
@@ -778,6 +779,7 @@ main (int argc, char *argv[])
   gtk_widget_show_all (window);
 
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); 
   gtk_window_set_default_size (GTK_WINDOW (window), 300, 300);
   gtk_window_set_title (GTK_WINDOW (window), "Bottom Window");
   swindow = gtk_scrolled_window_new (NULL, NULL);
@@ -787,6 +789,7 @@ main (int argc, char *argv[])
 
   /* Set up the main window */
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); 
   gtk_window_set_default_size (GTK_WINDOW (window), 500, 300);
   vbox = gtk_vbox_new (FALSE, 8);
   gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
index 3ec2ca03418d1e6022325f1c5095937e218fda1c..74a02741b09b0ceee5f82dbd918829564226cd4a 100644 (file)
@@ -647,7 +647,7 @@ main (int    argc,
   run_automated_tests ();
   
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-
+  g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
   gtk_window_set_default_size (GTK_WINDOW (window), 400, 400);
 
   table = gtk_table_new (3, 1, FALSE);
@@ -960,7 +960,7 @@ gtk_real_model_types_get_value (GtkTreeModel *tree_model,
         
         g_value_init (value, G_TYPE_STRING);
 
-        str = g_strdup_printf ("%d", type);
+        str = g_strdup_printf ("%ld", type);
         g_value_set_string (value, str);
         g_free (str);
       }
@@ -1159,7 +1159,7 @@ gtk_real_model_types_iter_parent (GtkTreeModel *tree_model,
   if (parent == G_TYPE_INVALID)
     {
       if (type > G_TYPE_FUNDAMENTAL_MAX)
-        g_warning ("no parent for %d %s\n", type, g_type_name (type));
+        g_warning ("no parent for %ld %s\n", type, g_type_name (type));
       return FALSE;
     }
   else