diff options
author | ZenWalker <[email protected]> | 2017-08-03 15:57:59 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2017-08-03 15:57:59 +0200 |
commit | 488a4acb01a190914cea0151dd43340c5716bd1b (patch) | |
tree | b74400a64082b996dcf37aaa5272834eb13d68c1 /gsearchtool | |
parent | 3aa9cc4480a6816b04d58835b4f598ee72eefbfb (diff) | |
download | mate-utils-488a4acb01a190914cea0151dd43340c5716bd1b.tar.bz2 mate-utils-488a4acb01a190914cea0151dd43340c5716bd1b.tar.xz |
avoid deprecated gdk_screen_make_display_name
Diffstat (limited to 'gsearchtool')
-rw-r--r-- | gsearchtool/libeggsmclient/eggdesktopfile.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gsearchtool/libeggsmclient/eggdesktopfile.c b/gsearchtool/libeggsmclient/eggdesktopfile.c index 4edc992f..3bc3b0a2 100644 --- a/gsearchtool/libeggsmclient/eggdesktopfile.c +++ b/gsearchtool/libeggsmclient/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 { |