forked from AuroraMiddleware/gtk
assistant: Avoid GdkScreen api
There is no need at all here to use gtk_settings_get_for_screen.
This commit is contained in:
parent
a1a5f556cb
commit
0cd864283f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user