immodule: Avoid GdkScreen api

Another place where it is not needed.
This commit is contained in:
Matthias Clasen 2017-10-30 19:27:36 -04:00
parent 24903e3fab
commit 297889e080

View File

@ -874,7 +874,6 @@ _gtk_im_module_get_default_context_id (void)
gint i;
gchar *tmp_locale, *tmp, **immodules;
const gchar *envvar;
GdkScreen *screen;
GtkSettings *settings;
if (!contexts_hash)
@ -891,10 +890,8 @@ _gtk_im_module_get_default_context_id (void)
return context_id;
}
/* Check if the certain immodule is set in XSETTINGS.
*/
screen = gdk_screen_get_default ();
settings = gtk_settings_get_for_screen (screen);
/* Check if the certain immodule is set in XSETTINGS. */
settings = gtk_settings_get_default ();
g_object_get (G_OBJECT (settings), "gtk-im-module", &tmp, NULL);
if (tmp)
{