summaryrefslogtreecommitdiff
path: root/copy-n-paste
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-08-04 16:42:42 +0200
committerZenWalker <[email protected]>2017-08-04 16:42:42 +0200
commit4470208e75bd77efe4798ef68ddda82cc9cf54d8 (patch)
tree23cacf96efee33f2606d83c9b0f0eb59e1b50167 /copy-n-paste
parentf0cd1df31fdd51db3245653426e58aa23d5379d8 (diff)
downloadengrampa-4470208e75bd77efe4798ef68ddda82cc9cf54d8.tar.bz2
engrampa-4470208e75bd77efe4798ef68ddda82cc9cf54d8.tar.xz
avoid deprecated gdk_screen_make_display_name
Diffstat (limited to 'copy-n-paste')
-rw-r--r--copy-n-paste/eggdesktopfile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/copy-n-paste/eggdesktopfile.c b/copy-n-paste/eggdesktopfile.c
index 5c09cdc..11b7cd8 100644
--- a/copy-n-paste/eggdesktopfile.c
+++ b/copy-n-paste/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
{