summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTobias Mueller <tobiasmue@gnome.org>2009-05-08 16:57:48 +0200
committerTobias Mueller <tobiasmue@gnome.org>2009-05-11 13:52:16 +0200
commitdc0dde995dba8c91aed152f236a383e27e8a02a3 (patch)
tree68090fa066abb6d442f325ebcfbabbc43a4b472f /tests
parentac9ea01ec95dc44ac9d0fcc03c5d1c9148b9bd6a (diff)
downloadgtk+-dc0dde995dba8c91aed152f236a383e27e8a02a3.tar.gz
Removed deprecated call to gtk_scale_button_get_orientation
and use gtk_orientable_set_orientation instead. Fixes bug 581878.
Diffstat (limited to 'tests')
-rw-r--r--tests/testvolumebutton.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testvolumebutton.c b/tests/testvolumebutton.c
index 01ff5ddbe2..ee1d2bd7e5 100644
--- a/tests/testvolumebutton.c
+++ b/tests/testvolumebutton.c
@@ -31,15 +31,15 @@ static void
toggle_orientation (GtkWidget *button,
GtkWidget *scalebutton)
{
- if (gtk_scale_button_get_orientation (GTK_SCALE_BUTTON (scalebutton)) ==
+ if (gtk_orientable_get_orientation (GTK_ORIENTABLE (scalebutton)) ==
GTK_ORIENTATION_HORIZONTAL)
{
- gtk_scale_button_set_orientation (GTK_SCALE_BUTTON (scalebutton),
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (scalebutton),
GTK_ORIENTATION_VERTICAL);
}
else
{
- gtk_scale_button_set_orientation (GTK_SCALE_BUTTON (scalebutton),
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (scalebutton),
GTK_ORIENTATION_HORIZONTAL);
}
}