summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-28 14:36:26 +0200
committerraveit65 <[email protected]>2017-07-29 15:49:17 +0200
commit67e955ac6de6c7a85dec45572e38b594e3e0dfb6 (patch)
treef567931a0fb16f661c7c25e81b5df23c2eb965da
parent2f6a8660a1a623d0ea327b127a7ec1e2ad5ee8c7 (diff)
downloadpluma-67e955ac6de6c7a85dec45572e38b594e3e0dfb6.tar.bz2
pluma-67e955ac6de6c7a85dec45572e38b594e3e0dfb6.tar.xz
pluma-help: don't use deprecated gtk_show_uri
-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);