summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-08-02 23:50:19 +0200
committerraveit65 <[email protected]>2017-08-08 17:34:55 +0200
commit67e749f9a2612677c5d6c60c888387eb44d4f47c (patch)
tree5f42fa7a3f4e23375c8b22bfa8b7f7953e00b8f7
parente6fe1068bedb6695a56c58795f8ca213c3b0470d (diff)
downloadmate-terminal-67e749f9a2612677c5d6c60c888387eb44d4f47c.tar.bz2
mate-terminal-67e749f9a2612677c5d6c60c888387eb44d4f47c.tar.xz
avoid deprecated gdk_screen_make_display_name
-rw-r--r--src/eggdesktopfile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/eggdesktopfile.c b/src/eggdesktopfile.c
index a57b091..6c779b1 100644
--- a/src/eggdesktopfile.c
+++ b/src/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
{