assistant: Avoid GdkScreen api

There is no need at all here to use gtk_settings_get_for_screen.
This commit is contained in:
Matthias Clasen 2017-10-30 19:07:14 -04:00
parent a1a5f556cb
commit 0cd864283f

View File

@ -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;