Commit dc0dde99 authored by Tobias Mueller's avatar Tobias Mueller

Removed deprecated call to gtk_scale_button_get_orientation

and use gtk_orientable_set_orientation instead.
Fixes bug 581878.
parent ac9ea01e
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment