mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
Removed deprecated call to gtk_scale_button_get_orientation
and use gtk_orientable_set_orientation instead. Fixes bug 581878.
This commit is contained in:
parent
ac9ea01ec9
commit
dc0dde995d
@ -31,15 +31,15 @@ static void
|
|||||||
toggle_orientation (GtkWidget *button,
|
toggle_orientation (GtkWidget *button,
|
||||||
GtkWidget *scalebutton)
|
GtkWidget *scalebutton)
|
||||||
{
|
{
|
||||||
if (gtk_scale_button_get_orientation (GTK_SCALE_BUTTON (scalebutton)) ==
|
if (gtk_orientable_get_orientation (GTK_ORIENTABLE (scalebutton)) ==
|
||||||
GTK_ORIENTATION_HORIZONTAL)
|
GTK_ORIENTATION_HORIZONTAL)
|
||||||
{
|
{
|
||||||
gtk_scale_button_set_orientation (GTK_SCALE_BUTTON (scalebutton),
|
gtk_orientable_set_orientation (GTK_ORIENTABLE (scalebutton),
|
||||||
GTK_ORIENTATION_VERTICAL);
|
GTK_ORIENTATION_VERTICAL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gtk_scale_button_set_orientation (GTK_SCALE_BUTTON (scalebutton),
|
gtk_orientable_set_orientation (GTK_ORIENTABLE (scalebutton),
|
||||||
GTK_ORIENTATION_HORIZONTAL);
|
GTK_ORIENTATION_HORIZONTAL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user