summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmate-desktop/mate-desktop-item.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libmate-desktop/mate-desktop-item.c b/libmate-desktop/mate-desktop-item.c
index b86ab02..e1cf0a4 100644
--- a/libmate-desktop/mate-desktop-item.c
+++ b/libmate-desktop/mate-desktop-item.c
@@ -2080,10 +2080,17 @@ mate_desktop_item_launch_on_screen_with_env (
return -1;
}
+#if GTK_CHECK_VERSION (3, 22, 0)
+ retval = gtk_show_uri_on_window (NULL,
+ url,
+ GDK_CURRENT_TIME,
+ error);
+#else
retval = gtk_show_uri (screen,
url,
GDK_CURRENT_TIME,
error);
+#endif
return retval ? 0 : -1;
}