[gnome-flashback/gnome-3-22] input-sources: avoid a deprecation warnings



commit ce22e1d9f0b3e48bd4afc858aaa26eef9e3367d1
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Oct 24 18:33:35 2016 +0300

    input-sources: avoid a deprecation warnings

 .../libinput-sources/gf-candidate-popup.c          |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-candidate-popup.c 
b/gnome-flashback/libinput-sources/gf-candidate-popup.c
index 6f13a07..dee6a56 100644
--- a/gnome-flashback/libinput-sources/gf-candidate-popup.c
+++ b/gnome-flashback/libinput-sources/gf-candidate-popup.c
@@ -61,9 +61,15 @@ update_size_and_position (GfCandidatePopup *popup)
   cursor = &popup->cursor;
 
   screen = gtk_window_get_screen (window);
+
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   monitor = gdk_screen_get_monitor_at_point (screen, cursor->x, cursor->y);
+  G_GNUC_END_IGNORE_DEPRECATIONS
 
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gdk_screen_get_monitor_geometry (screen, monitor, &rect);
+  G_GNUC_END_IGNORE_DEPRECATIONS
+
   gtk_window_get_size (window, &width, &height);
 
   x = cursor->x;


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