summaryrefslogtreecommitdiff
path: root/egg
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-08-03 21:50:56 +0200
committerZenWalker <[email protected]>2017-08-03 21:50:56 +0200
commit7bd3d1432fb154cb64ecae1ed918c8a6afd5df24 (patch)
tree21d5e7fb7a07e58a02f3a956e0fc86fadc908930 /egg
parent5d919f3c1418ba2185a734cb658b0cb7efc24880 (diff)
downloadmate-session-manager-7bd3d1432fb154cb64ecae1ed918c8a6afd5df24.tar.bz2
mate-session-manager-7bd3d1432fb154cb64ecae1ed918c8a6afd5df24.tar.xz
avoid deprecated gdk_screen_make_display_name
Diffstat (limited to 'egg')
-rw-r--r--egg/eggdesktopfile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/egg/eggdesktopfile.c b/egg/eggdesktopfile.c
index 07b71bd..ce4d622 100644
--- a/egg/eggdesktopfile.c
+++ b/egg/eggdesktopfile.c
@@ -1171,13 +1171,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
{