From c538ddf86852c5618512c8be187828de3d5e4fee Mon Sep 17 00:00:00 2001 From: ZenWalker Date: Wed, 2 Aug 2017 01:28:05 +0200 Subject: avoid deprecated gdk_screen_make_display_name --- open-terminal/caja-open-terminal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'open-terminal/caja-open-terminal.c') diff --git a/open-terminal/caja-open-terminal.c b/open-terminal/caja-open-terminal.c index 2f5efd1..733a90f 100644 --- a/open-terminal/caja-open-terminal.c +++ b/open-terminal/caja-open-terminal.c @@ -279,6 +279,7 @@ static void open_terminal_callback (CajaMenuItem *item, CajaFileInfo *file_info) { + GdkDisplay *display; gchar *display_str; const gchar *old_display_str; gchar *uri; @@ -336,8 +337,9 @@ open_terminal_callback (CajaMenuItem *item, old_display_str = g_getenv ("DISPLAY"); screen = g_object_get_data (G_OBJECT (item), "CajaOpenTerminal::screen"); + display = gdk_screen_get_display (screen); if (screen != NULL) { - display_str = gdk_screen_make_display_name (screen); + display_str = g_strdup (gdk_display_get_name (display)); g_setenv ("DISPLAY", display_str, TRUE); } -- cgit v1.2.1