[gtk+] immodule: Avoid GdkScreen api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] immodule: Avoid GdkScreen api
- Date: Mon, 30 Oct 2017 23:31:32 +0000 (UTC)
commit 297889e080234a2cc9427cd3711e92a9817fd1b2
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 30 19:27:36 2017 -0400
immodule: Avoid GdkScreen api
Another place where it is not needed.
gtk/gtkimmodule.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkimmodule.c b/gtk/gtkimmodule.c
index ea1990b..f3f2540 100644
--- a/gtk/gtkimmodule.c
+++ b/gtk/gtkimmodule.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]