forked from AuroraMiddleware/gtk
tests/testtreecolumns.c quit the main loop when the window is destroyed.
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().
This commit is contained in:
parent
74295aeddf
commit
deb549090a
@ -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>
|
Fri Apr 26 21:46:42 2002 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
This commit fixes binary compatibility, which I broke with my
|
This commit fixes binary compatibility, which I broke with my
|
||||||
|
@ -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>
|
Fri Apr 26 21:46:42 2002 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
This commit fixes binary compatibility, which I broke with my
|
This commit fixes binary compatibility, which I broke with my
|
||||||
|
@ -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>
|
Fri Apr 26 21:46:42 2002 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
This commit fixes binary compatibility, which I broke with my
|
This commit fixes binary compatibility, which I broke with my
|
||||||
|
@ -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>
|
Fri Apr 26 21:46:42 2002 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
This commit fixes binary compatibility, which I broke with my
|
This commit fixes binary compatibility, which I broke with my
|
||||||
|
@ -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>
|
Fri Apr 26 21:46:42 2002 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
This commit fixes binary compatibility, which I broke with my
|
This commit fixes binary compatibility, which I broke with my
|
||||||
|
@ -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>
|
Fri Apr 26 21:46:42 2002 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
This commit fixes binary compatibility, which I broke with my
|
This commit fixes binary compatibility, which I broke with my
|
||||||
|
@ -770,6 +770,7 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
/* Set up the test windows. */
|
/* Set up the test windows. */
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
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_default_size (GTK_WINDOW (window), 300, 300);
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Top Window");
|
gtk_window_set_title (GTK_WINDOW (window), "Top Window");
|
||||||
swindow = gtk_scrolled_window_new (NULL, NULL);
|
swindow = gtk_scrolled_window_new (NULL, NULL);
|
||||||
@ -778,6 +779,7 @@ main (int argc, char *argv[])
|
|||||||
gtk_widget_show_all (window);
|
gtk_widget_show_all (window);
|
||||||
|
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
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_default_size (GTK_WINDOW (window), 300, 300);
|
||||||
gtk_window_set_title (GTK_WINDOW (window), "Bottom Window");
|
gtk_window_set_title (GTK_WINDOW (window), "Bottom Window");
|
||||||
swindow = gtk_scrolled_window_new (NULL, NULL);
|
swindow = gtk_scrolled_window_new (NULL, NULL);
|
||||||
@ -787,6 +789,7 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
/* Set up the main window */
|
/* Set up the main window */
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
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);
|
gtk_window_set_default_size (GTK_WINDOW (window), 500, 300);
|
||||||
vbox = gtk_vbox_new (FALSE, 8);
|
vbox = gtk_vbox_new (FALSE, 8);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
|
gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
|
||||||
|
@ -647,7 +647,7 @@ main (int argc,
|
|||||||
run_automated_tests ();
|
run_automated_tests ();
|
||||||
|
|
||||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
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);
|
gtk_window_set_default_size (GTK_WINDOW (window), 400, 400);
|
||||||
|
|
||||||
table = gtk_table_new (3, 1, FALSE);
|
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);
|
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_value_set_string (value, str);
|
||||||
g_free (str);
|
g_free (str);
|
||||||
}
|
}
|
||||||
@ -1159,7 +1159,7 @@ gtk_real_model_types_iter_parent (GtkTreeModel *tree_model,
|
|||||||
if (parent == G_TYPE_INVALID)
|
if (parent == G_TYPE_INVALID)
|
||||||
{
|
{
|
||||||
if (type > G_TYPE_FUNDAMENTAL_MAX)
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user