[gnome-flashback/gnome-3-22] shell: avoid a deprecation warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback/gnome-3-22] shell: avoid a deprecation warnings
- Date: Mon, 24 Oct 2016 15:50:08 +0000 (UTC)
commit 5fcea527335a24b97e3782e7141167749c63caae
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Oct 24 18:43:31 2016 +0300
shell: avoid a deprecation warnings
gnome-flashback/libshell/flashback-osd.c | 3 +++
gnome-flashback/libshell/gf-label-window.c | 2 ++
gnome-flashback/libshell/gf-osd-window.c | 2 ++
3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libshell/flashback-osd.c b/gnome-flashback/libshell/flashback-osd.c
index 0f50aee..7364422 100644
--- a/gnome-flashback/libshell/flashback-osd.c
+++ b/gnome-flashback/libshell/flashback-osd.c
@@ -40,7 +40,10 @@ monitors_changed (GdkScreen *screen,
gint i;
osd = FLASHBACK_OSD (user_data);
+
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
n_monitors = gdk_screen_get_n_monitors (screen);
+ G_GNUC_END_IGNORE_DEPRECATIONS
if (osd->windows != NULL)
{
diff --git a/gnome-flashback/libshell/gf-label-window.c b/gnome-flashback/libshell/gf-label-window.c
index 0612643..47b2a46 100644
--- a/gnome-flashback/libshell/gf-label-window.c
+++ b/gnome-flashback/libshell/gf-label-window.c
@@ -100,7 +100,9 @@ gf_label_window_new (gint monitor,
"type", GTK_WINDOW_POPUP,
NULL);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gdk_screen_get_monitor_workarea (screen, monitor, &window->monitor);
+ G_GNUC_END_IGNORE_DEPRECATIONS
width = window->monitor.width;
height = window->monitor.height;
diff --git a/gnome-flashback/libshell/gf-osd-window.c b/gnome-flashback/libshell/gf-osd-window.c
index c694401..d77208e 100644
--- a/gnome-flashback/libshell/gf-osd-window.c
+++ b/gnome-flashback/libshell/gf-osd-window.c
@@ -161,7 +161,9 @@ gf_osd_window_new (gint monitor)
"type", GTK_WINDOW_POPUP,
NULL);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gdk_screen_get_monitor_workarea (screen, monitor, &window->monitor);
+ G_GNUC_END_IGNORE_DEPRECATIONS
width = window->monitor.width;
height = window->monitor.height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]