summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-08-03 00:12:16 +0200
committerraveit65 <[email protected]>2017-08-04 08:27:47 +0200
commit109a32aac32790397e3cddd906e6dedf2dd3d856 (patch)
tree1f50b5bfa7f4bf400a6e7b1e9516abd12bced218
parent67e955ac6de6c7a85dec45572e38b594e3e0dfb6 (diff)
downloadpluma-109a32aac32790397e3cddd906e6dedf2dd3d856.tar.bz2
pluma-109a32aac32790397e3cddd906e6dedf2dd3d856.tar.xz
avoid deprecated gdk_screen_make_display_name
-rw-r--r--pluma/smclient/eggdesktopfile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pluma/smclient/eggdesktopfile.c b/pluma/smclient/eggdesktopfile.c
index f7c231a8..84e611f7 100644
--- a/pluma/smclient/eggdesktopfile.c
+++ b/pluma/smclient/eggdesktopfile.c
@@ -1172,13 +1172,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
{