[gnome-flashback] input-sources: avoid deprecation warnings



commit 234eaf91fca788315feaeaeba036806992319df1
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Oct 26 01:09:04 2016 +0300

    input-sources: avoid deprecation warnings

 .../libinput-sources/gf-candidate-popup.c          |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-candidate-popup.c 
b/gnome-flashback/libinput-sources/gf-candidate-popup.c
index 6f13a07..a8bf582 100644
--- a/gnome-flashback/libinput-sources/gf-candidate-popup.c
+++ b/gnome-flashback/libinput-sources/gf-candidate-popup.c
@@ -44,8 +44,8 @@ update_size_and_position (GfCandidatePopup *popup)
   GtkWindow *window;
   GtkRequisition size;
   GdkRectangle *cursor;
-  GdkScreen *screen;
-  gint monitor;
+  GdkDisplay *display;
+  GdkMonitor *monitor;
   GdkRectangle rect;
   gint width;
   gint height;
@@ -60,10 +60,10 @@ update_size_and_position (GfCandidatePopup *popup)
 
   cursor = &popup->cursor;
 
-  screen = gtk_window_get_screen (window);
-  monitor = gdk_screen_get_monitor_at_point (screen, cursor->x, cursor->y);
+  display = gdk_display_get_default ();
+  monitor = gdk_display_get_monitor_at_point (display, cursor->x, cursor->y);
 
-  gdk_screen_get_monitor_geometry (screen, monitor, &rect);
+  gdk_monitor_get_geometry (monitor, &rect);
   gtk_window_get_size (window, &width, &height);
 
   x = cursor->x;


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