diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c index 3532d40803..e835917c26 100644 --- a/gtk/gtkassistant.c +++ b/gtk/gtkassistant.c @@ -1025,14 +1025,9 @@ on_assistant_last (GtkWidget *widget, static gboolean alternative_button_order (GtkAssistant *assistant) { - GtkSettings *settings; - GdkScreen *screen; gboolean result; - screen = gtk_widget_get_screen (GTK_WIDGET (assistant)); - settings = gtk_settings_get_for_screen (screen); - - g_object_get (settings, + g_object_get (gtk_widget_get_settings (GTK_WIDGET (assistant)), "gtk-alternative-button-order", &result, NULL); return result;