[Xfce4-commits] [xfce/xfdesktop] 01/16: gdk_screen_get_number is deprecated
noreply at xfce.org
noreply at xfce.org
Wed Apr 19 17:46:18 CEST 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfdesktop.
commit bce1e19c3898cfbaadc814bcc064778d71165904
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Wed Apr 19 06:11:24 2017 +0300
gdk_screen_get_number is deprecated
---
src/xfdesktop-file-icon-manager.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c
index 5ce6321..c9238f2 100644
--- a/src/xfdesktop-file-icon-manager.c
+++ b/src/xfdesktop-file-icon-manager.c
@@ -1870,7 +1870,7 @@ xfdesktop_file_icon_manager_save_icons(gpointer user_data)
&height);
g_snprintf(relpath, PATH_MAX, "xfce4/desktop/icons.screen%d-%dx%d.rc",
- gdk_screen_get_number(fmanager->priv->gscreen),
+ 0,
width,
height);
@@ -1971,7 +1971,7 @@ xfdesktop_file_icon_manager_get_cached_icon_position(XfdesktopFileIconManager *f
&height);
g_snprintf(relpath, PATH_MAX, "xfce4/desktop/icons.screen%d-%dx%d.rc",
- gdk_screen_get_number(fmanager->priv->gscreen),
+ 0,
width,
height);
@@ -1979,8 +1979,7 @@ xfdesktop_file_icon_manager_get_cached_icon_position(XfdesktopFileIconManager *f
/* Check if we have to migrate from the old file format */
if(filename == NULL) {
- g_snprintf(relpath, PATH_MAX, "xfce4/desktop/icons.screen%d.rc",
- gdk_screen_get_number(fmanager->priv->gscreen));
+ g_snprintf(relpath, PATH_MAX, "xfce4/desktop/icons.screen%d.rc", 0);
filename = xfce_resource_lookup(XFCE_RESOURCE_CONFIG, relpath);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list