summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-07-20 01:29:02 +0200
committerZenWalker <[email protected]>2017-07-20 01:29:02 +0200
commitf63d8fec1708579689c26e50c9d4da3c70c7fb2b (patch)
treea6401edf4bc759bce8f9218e1a012a5ce619b202 /src
parent0d8062e78aaa5d985dada279cb91372b46d63356 (diff)
downloadeom-f63d8fec1708579689c26e50c9d4da3c70c7fb2b.tar.bz2
eom-f63d8fec1708579689c26e50c9d4da3c70c7fb2b.tar.xz
avoid deprecated gdk_screen_get_number
Diffstat (limited to 'src')
-rw-r--r--src/eom-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eom-window.c b/src/eom-window.c
index 8114435..7979acb 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -387,8 +387,8 @@ eom_window_get_display_profile (GdkScreen *screen)
dpy = GDK_DISPLAY_XDISPLAY (gdk_screen_get_display (screen));
- if (gdk_screen_get_number (screen) > 0)
- atom_name = g_strdup_printf ("_ICC_PROFILE_%d", gdk_screen_get_number (screen));
+ if (gdk_x11_screen_get_screen_number (screen) > 0)
+ atom_name = g_strdup_printf ("_ICC_PROFILE_%d", gdk_x11_screen_get_screen_number (screen));
else
atom_name = g_strdup ("_ICC_PROFILE");