diff options
author | ZenWalker <[email protected]> | 2017-08-03 00:53:44 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-08 17:53:25 +0200 |
commit | 88e0ce4e947fab89e2dba5137f084efb6e0b7c9a (patch) | |
tree | 6a767e9d9db8b428dac38a0002fef1181570faf4 /cut-n-paste/smclient/eggdesktopfile.c | |
parent | 963490dc47f7887cf5666b18b2e5dc4dd7b0698e (diff) | |
download | atril-88e0ce4e947fab89e2dba5137f084efb6e0b7c9a.tar.bz2 atril-88e0ce4e947fab89e2dba5137f084efb6e0b7c9a.tar.xz |
avoid deprecated gdk_screen_make_display_name
Diffstat (limited to 'cut-n-paste/smclient/eggdesktopfile.c')
-rw-r--r-- | cut-n-paste/smclient/eggdesktopfile.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cut-n-paste/smclient/eggdesktopfile.c b/cut-n-paste/smclient/eggdesktopfile.c index 3c48d86a..6fc382a0 100644 --- a/cut-n-paste/smclient/eggdesktopfile.c +++ b/cut-n-paste/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 { |