[gnome-flashback] workarounds: avoid deprecated gdk_screen_get_number



commit 2bb44bdf623c411e28c6a6bbafb6f1a33b05f8e0
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Nov 5 00:34:52 2016 +0200

    workarounds: avoid deprecated gdk_screen_get_number

 gnome-flashback/libworkarounds/gf-workarounds.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-flashback/libworkarounds/gf-workarounds.c b/gnome-flashback/libworkarounds/gf-workarounds.c
index 75797e9..084ac18 100644
--- a/gnome-flashback/libworkarounds/gf-workarounds.c
+++ b/gnome-flashback/libworkarounds/gf-workarounds.c
@@ -659,7 +659,7 @@ x11_init (GfWorkarounds *workarounds)
   display = gdk_display_get_default ();
   xdisplay = gdk_x11_display_get_xdisplay (display);
   screen = gdk_display_get_default_screen (display);
-  number = gdk_screen_get_number (screen);
+  number = gdk_x11_screen_get_screen_number (screen);
   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]