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



commit f192d13664f1c0b3f49d40076741e0e2cb861e33
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Oct 24 18:31:03 2016 +0300

    desktop-background: avoid a deprecation warnings

 .../libdesktop-background/gf-desktop-background.c  |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libdesktop-background/gf-desktop-background.c 
b/gnome-flashback/libdesktop-background/gf-desktop-background.c
index dae5983..ea66b84 100644
--- a/gnome-flashback/libdesktop-background/gf-desktop-background.c
+++ b/gnome-flashback/libdesktop-background/gf-desktop-background.c
@@ -56,8 +56,11 @@ draw_background (GfDesktopBackground *background,
 
   screen = gdk_screen_get_default ();
   root = gdk_screen_get_root_window (screen);
+
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   width = gdk_screen_get_width (screen);
   height = gdk_screen_get_height (screen);
+  G_GNUC_END_IGNORE_DEPRECATIONS
 
   surface = gnome_bg_create_surface (background->bg, root, width, height, TRUE);
 


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