summaryrefslogtreecommitdiff
path: root/plugins/filebrowser/pluma-file-browser-widget.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-28 14:35:52 +0200
committerraveit65 <[email protected]>2017-07-29 15:49:02 +0200
commit2f6a8660a1a623d0ea327b127a7ec1e2ad5ee8c7 (patch)
tree0b9626ee394bbc789eecee6889e6dbe977cdea2e /plugins/filebrowser/pluma-file-browser-widget.c
parentfd9745969a91c77785a2209357dc6af3ce9870d2 (diff)
downloadpluma-2f6a8660a1a623d0ea327b127a7ec1e2ad5ee8c7.tar.bz2
pluma-2f6a8660a1a623d0ea327b127a7ec1e2ad5ee8c7.tar.xz
filebrowser: don't use deprecated gtk_show_uri
Diffstat (limited to 'plugins/filebrowser/pluma-file-browser-widget.c')
-rw-r--r--plugins/filebrowser/pluma-file-browser-widget.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-widget.c b/plugins/filebrowser/pluma-file-browser-widget.c
index 4fab0f47..4d0ce488 100644
--- a/plugins/filebrowser/pluma-file-browser-widget.c
+++ b/plugins/filebrowser/pluma-file-browser-widget.c
@@ -2473,7 +2473,11 @@ directory_open (PlumaFileBrowserWidget *obj,
if (FILE_IS_DIR (flags)) {
result = TRUE;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ if (!gtk_show_uri_on_window (NULL, uri, GDK_CURRENT_TIME, &error)) {
+#else
if (!gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (obj)), uri, GDK_CURRENT_TIME, &error)) {
+#endif
g_signal_emit (obj, signals[ERROR], 0,
PLUMA_FILE_BROWSER_ERROR_OPEN_DIRECTORY,
error->message);