summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2003-06-09 22:50:54 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2003-06-09 22:50:54 +0000
commit171fd90cd3ae05a24167a3ae9431f84664c986cf (patch)
tree0265640280fbaacfb3d32a43bc5113780178d281 /tests
parent31d85b7ed0098503c850cdaf3d49f757f9f7cf58 (diff)
downloadgdk-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.c4
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);