diff options
author | ZenWalker <[email protected]> | 2017-08-02 01:28:05 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-04 08:04:46 +0200 |
commit | c538ddf86852c5618512c8be187828de3d5e4fee (patch) | |
tree | fd411f7da98cc0397967ae8716684b7ebdd7be2e | |
parent | 4e4ffcead854f685b4df2619d033be64058dd260 (diff) | |
download | caja-extensions-c538ddf86852c5618512c8be187828de3d5e4fee.tar.bz2 caja-extensions-c538ddf86852c5618512c8be187828de3d5e4fee.tar.xz |
avoid deprecated gdk_screen_make_display_name
-rw-r--r-- | open-terminal/caja-open-terminal.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |