diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2003-06-09 22:50:54 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2003-06-09 22:50:54 +0000 |
commit | 171fd90cd3ae05a24167a3ae9431f84664c986cf (patch) | |
tree | 0265640280fbaacfb3d32a43bc5113780178d281 /tests | |
parent | 31d85b7ed0098503c850cdaf3d49f757f9f7cf58 (diff) | |
download | gdk-pixbuf-171fd90cd3ae05a24167a3ae9431f84664c986cf.tar.gz |
Make it compile with C89 compilers
Tue Jun 10 00:58:23 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* tests/testgtk.c: Make it compile with C89 compilers
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testgtk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c index 53b116c3c..335ad9409 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -8559,9 +8559,9 @@ create_notebook (GtkWidget *widget) void toggle_resize (GtkWidget *widget, GtkWidget *child) { + GtkContainer *container = GTK_CONTAINER (gtk_widget_get_parent (child)); GValue value = { 0, }; g_value_init (&value, G_TYPE_BOOLEAN); - GtkContainer *container = GTK_CONTAINER (gtk_widget_get_parent (child)); gtk_container_child_get_property (container, child, "resize", &value); g_value_set_boolean (&value, !g_value_get_boolean (&value)); gtk_container_child_set_property (container, child, "resize", &value); @@ -8570,9 +8570,9 @@ toggle_resize (GtkWidget *widget, GtkWidget *child) void toggle_shrink (GtkWidget *widget, GtkWidget *child) { + GtkContainer *container = GTK_CONTAINER (gtk_widget_get_parent (child)); GValue value = { 0, }; g_value_init (&value, G_TYPE_BOOLEAN); - GtkContainer *container = GTK_CONTAINER (gtk_widget_get_parent (child)); gtk_container_child_get_property (container, child, "shrink", &value); g_value_set_boolean (&value, !g_value_get_boolean (&value)); gtk_container_child_set_property (container, child, "shrink", &value); |