summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-08-03 16:07:22 +0200
committerraveit65 <[email protected]>2017-08-08 18:01:31 +0200
commit6c51a333e80df22587df4d9e0e2789fd1289d728 (patch)
tree082c2be698b8c3f15bdbbd269cc9cb229a6abb24
parent2d32f5c11590d7d63da436997b08a502e60dca15 (diff)
downloadcaja-6c51a333e80df22587df4d9e0e2789fd1289d728.tar.bz2
caja-6c51a333e80df22587df4d9e0e2789fd1289d728.tar.xz
avoid deprecated gdk_screen_make_display_name
-rw-r--r--cut-n-paste-code/libegg/eggdesktopfile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cut-n-paste-code/libegg/eggdesktopfile.c b/cut-n-paste-code/libegg/eggdesktopfile.c
index 011b7fd2..eb227b69 100644
--- a/cut-n-paste-code/libegg/eggdesktopfile.c
+++ b/cut-n-paste-code/libegg/eggdesktopfile.c
@@ -1174,13 +1174,12 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file,
if (screen)
{
- char *display_name = gdk_screen_make_display_name (screen);
+ display = gdk_screen_get_display (screen);
+ char *display_name = g_strdup (gdk_display_get_name (display));
char *display_env = g_strdup_printf ("DISPLAY=%s", display_name);
env = array_putenv (env, display_env);
g_free (display_name);
g_free (display_env);
-
- display = gdk_screen_get_display (screen);
}
else
{