[gtk+] immulticontext: Avoid GdkScreen api



commit 9e5f4f94b3bc25352d81b6531a6e6c49a80ee1e9
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 30 19:30:29 2017 -0400

    immulticontext: Avoid GdkScreen api
    
    No need for it here either.

 gtk/gtkimmulticontext.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkimmulticontext.c b/gtk/gtkimmulticontext.c
index d32db00..b9441ef 100644
--- a/gtk/gtkimmulticontext.c
+++ b/gtk/gtkimmulticontext.c
@@ -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"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]