summaryrefslogtreecommitdiff
path: root/pluma/pluma-help.c
diff options
context:
space:
mode:
Diffstat (limited to 'pluma/pluma-help.c')
-rw-r--r--pluma/pluma-help.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/pluma/pluma-help.c b/pluma/pluma-help.c
index 23129b89..3e5c2749 100644
--- a/pluma/pluma-help.c
+++ b/pluma/pluma-help.c
@@ -63,10 +63,17 @@ pluma_help_display (GtkWindow *parent,
else
link = g_strdup_printf ("help:%s", name);
+#if GTK_CHECK_VERSION (3, 22, 0)
+ ret = gtk_show_uri_on_window (parent,
+ link,
+ GDK_CURRENT_TIME,
+ &error);
+#else
ret = gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (parent)),
- link,
- GDK_CURRENT_TIME,
- &error);
+ link,
+ GDK_CURRENT_TIME,
+ &error);
+#endif
g_free (link);