From: Sven Neumann Date: Fri, 26 Apr 2002 19:50:17 +0000 (+0000) Subject: tests/testtreecolumns.c quit the main loop when the window is destroyed. X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=deb549090a6f85725835494ee47d691295302ec1;p=~andy%2Fgtk tests/testtreecolumns.c quit the main loop when the window is destroyed. 2002-04-26 Sven Neumann * tests/testtreecolumns.c * tests/testtreeview.c: quit the main loop when the window is destroyed. Removed compiler warnings about wrong format in printf(). --- diff --git a/ChangeLog b/ChangeLog index 4838e9190..0e22e265c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-04-26 Sven Neumann + + * 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 This commit fixes binary compatibility, which I broke with my diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 4838e9190..0e22e265c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2002-04-26 Sven Neumann + + * 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 This commit fixes binary compatibility, which I broke with my diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 4838e9190..0e22e265c 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +2002-04-26 Sven Neumann + + * 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 This commit fixes binary compatibility, which I broke with my diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 4838e9190..0e22e265c 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +2002-04-26 Sven Neumann + + * 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 This commit fixes binary compatibility, which I broke with my diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 4838e9190..0e22e265c 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2002-04-26 Sven Neumann + + * 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 This commit fixes binary compatibility, which I broke with my diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 4838e9190..0e22e265c 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2002-04-26 Sven Neumann + + * 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 This commit fixes binary compatibility, which I broke with my diff --git a/tests/testtreecolumns.c b/tests/testtreecolumns.c index fb15a9ec7..b2e0d8291 100644 --- a/tests/testtreecolumns.c +++ b/tests/testtreecolumns.c @@ -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); diff --git a/tests/testtreeview.c b/tests/testtreeview.c index 3ec2ca034..74a02741b 100644 --- a/tests/testtreeview.c +++ b/tests/testtreeview.c @@ -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