immulticontext: Avoid GdkScreen api

No need for it here either.
This commit is contained in:
Matthias Clasen 2017-10-30 19:30:29 -04:00
parent 297889e080
commit 9e5f4f94b3

View File

@ -306,8 +306,7 @@ gtk_im_multicontext_set_client_widget (GtkIMContext *context,
if (widget)
{
screen = gtk_widget_get_screen (widget);
settings = gtk_settings_get_for_screen (screen);
settings = gtk_widget_get_settings (widget);
connected = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (settings),
"gtk-im-module-connected"));