[Xfce4-commits] [xfce/xfce4-panel] 02/02: Ignore deprecated GdkScreen calls

noreply at xfce.org noreply at xfce.org
Sun Dec 23 00:45:58 CET 2018


This is an automated email from the git hooks/post-receive script.

a   j   b       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-panel.

commit 5ceb4057a2e4c6136b7884ad649dd95f1c71aabf
Author: Alistair Buxton <a.j.buxton at gmail.com>
Date:   Sat Dec 22 23:15:54 2018 +0000

    Ignore deprecated GdkScreen calls
---
 plugins/pager/pager.c             | 4 ++++
 plugins/showdesktop/showdesktop.c | 2 ++
 plugins/systray/systray-manager.c | 2 ++
 plugins/windowmenu/windowmenu.c   | 2 ++
 4 files changed, 10 insertions(+)

diff --git a/plugins/pager/pager.c b/plugins/pager/pager.c
index 456ae3b..e0274fe 100644
--- a/plugins/pager/pager.c
+++ b/plugins/pager/pager.c
@@ -388,7 +388,9 @@ pager_plugin_screen_layout_changed (PagerPlugin *plugin)
         g_message ("Setting the pager rows returned false. Maybe the setting is not applied.");
 
       wnck_pager_set_orientation (WNCK_PAGER (plugin->pager), orientation);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
       plugin->ratio = (gfloat) gdk_screen_width () / (gfloat) gdk_screen_height ();
+G_GNUC_END_IGNORE_DEPRECATIONS
     }
   else
     {
@@ -412,7 +414,9 @@ pager_plugin_screen_changed (GtkWidget *widget,
   WnckScreen  *wnck_screen;
 
   screen = gtk_widget_get_screen (widget);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   wnck_screen = wnck_screen_get (gdk_screen_get_number (screen));
+G_GNUC_END_IGNORE_DEPRECATIONS
 
   if (plugin->wnck_screen != wnck_screen)
     {
diff --git a/plugins/showdesktop/showdesktop.c b/plugins/showdesktop/showdesktop.c
index c205f8d..9f3b3de 100644
--- a/plugins/showdesktop/showdesktop.c
+++ b/plugins/showdesktop/showdesktop.c
@@ -132,7 +132,9 @@ show_desktop_plugin_screen_changed (GtkWidget *widget,
 
   /* get the new wnck screen */
   screen = gtk_widget_get_screen (widget);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   wnck_screen = wnck_screen_get (gdk_screen_get_number (screen));
+G_GNUC_END_IGNORE_DEPRECATIONS
   panel_return_if_fail (WNCK_IS_SCREEN (wnck_screen));
 
   /* leave when the wnck screen did not change */
diff --git a/plugins/systray/systray-manager.c b/plugins/systray/systray-manager.c
index f29e23a..639b25f 100644
--- a/plugins/systray/systray-manager.c
+++ b/plugins/systray/systray-manager.c
@@ -326,7 +326,9 @@ systray_manager_register (SystrayManager  *manager,
   gtk_widget_add_events (invisible, GDK_PROPERTY_CHANGE_MASK | GDK_STRUCTURE_MASK);
 
   /* get the screen number */
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   screen_number = gdk_screen_get_number (screen);
+G_GNUC_END_IGNORE_DEPRECATIONS
 
   /* create the selection atom name */
   selection_name = g_strdup_printf ("_NET_SYSTEM_TRAY_S%d", screen_number);
diff --git a/plugins/windowmenu/windowmenu.c b/plugins/windowmenu/windowmenu.c
index d585928..73d5dfb 100644
--- a/plugins/windowmenu/windowmenu.c
+++ b/plugins/windowmenu/windowmenu.c
@@ -401,7 +401,9 @@ window_menu_plugin_screen_changed (GtkWidget *widget,
   /* get the wnck screen */
   screen = gtk_widget_get_screen (widget);
   panel_return_if_fail (GDK_IS_SCREEN (screen));
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   wnck_screen = wnck_screen_get (gdk_screen_get_number (screen));
+G_GNUC_END_IGNORE_DEPRECATIONS
   panel_return_if_fail (WNCK_IS_SCREEN (wnck_screen));
 
   /* leave when we same wnck screen was picked */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list