]> Pileus Git - ~andy/gtk/commitdiff
Removed deprecated call to gtk_scale_button_get_orientation
authorTobias Mueller <tobiasmue@gnome.org>
Fri, 8 May 2009 14:57:48 +0000 (16:57 +0200)
committerTobias Mueller <tobiasmue@gnome.org>
Mon, 11 May 2009 11:52:16 +0000 (13:52 +0200)
and use gtk_orientable_set_orientation instead.
Fixes bug 581878.

tests/testvolumebutton.c

index 01ff5ddbe27994c06ef80673cdd48d2153ea4003..ee1d2bd7e5e1926794fbac4fff552e3b61f8ccff 100644 (file)
@@ -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);
     }
 }