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



commit c9bd10df2b6789adf5daf26d48f599f480e206b5
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Oct 24 18:48:13 2016 +0300

    workarounds: avoid a deprecation warnings

 gnome-flashback/libworkarounds/gf-workarounds.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libworkarounds/gf-workarounds.c b/gnome-flashback/libworkarounds/gf-workarounds.c
index 75797e9..c13597b 100644
--- a/gnome-flashback/libworkarounds/gf-workarounds.c
+++ b/gnome-flashback/libworkarounds/gf-workarounds.c
@@ -659,7 +659,11 @@ x11_init (GfWorkarounds *workarounds)
   display = gdk_display_get_default ();
   xdisplay = gdk_x11_display_get_xdisplay (display);
   screen = gdk_display_get_default_screen (display);
+
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   number = gdk_screen_get_number (screen);
+  G_GNUC_END_IGNORE_DEPRECATIONS
+
   atom = g_strdup_printf ("_XSETTINGS_S%d", number);
 
   workarounds->xdisplay = xdisplay;


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