summaryrefslogtreecommitdiff
path: root/tests/testframe.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2007-11-14 10:00:37 +0000
committerMichael Natterer <mitch@src.gnome.org>2007-11-14 10:00:37 +0000
commitb5f204ac3c578938e6f210f120b61dc41d417c34 (patch)
tree99a47bc5e4765d3c027d6eb4031a2aae2c81e558 /tests/testframe.c
parentb4327f13ed59eab3e8e45c9ae7cf9283634991da (diff)
downloadgtk+-b5f204ac3c578938e6f210f120b61dc41d417c34.tar.gz
tests/testbbox.c use g_object_ref/unref instead of deprecated functions.
2007-11-14 Michael Natterer <mitch@imendio.com> * tests/testbbox.c * tests/testframe.c: use g_object_ref/unref instead of deprecated functions. svn path=/trunk/; revision=18990
Diffstat (limited to 'tests/testframe.c')
-rw-r--r--tests/testframe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/testframe.c b/tests/testframe.c
index 2abb83249b..b64ec6400d 100644
--- a/tests/testframe.c
+++ b/tests/testframe.c
@@ -30,7 +30,8 @@ spin_ythickness_cb (GtkSpinButton *spin, gpointer user_data)
rcstyle->xthickness = GTK_WIDGET (frame)->style->xthickness;
rcstyle->ythickness = gtk_spin_button_get_value (spin);
gtk_widget_modify_style (frame, rcstyle);
- gtk_rc_style_unref (rcstyle);
+
+ g_object_unref (rcstyle);
}
static void
@@ -44,7 +45,7 @@ spin_xthickness_cb (GtkSpinButton *spin, gpointer user_data)
rcstyle->ythickness = GTK_WIDGET (frame)->style->ythickness;
gtk_widget_modify_style (frame, rcstyle);
- gtk_rc_style_unref (rcstyle);
+ g_object_unref (rcstyle);
}
/* Function to normalize rounding errors in FP arithmetic to