From 67e955ac6de6c7a85dec45572e38b594e3e0dfb6 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 28 Jul 2017 14:36:26 +0200 Subject: pluma-help: don't use deprecated gtk_show_uri --- pluma/pluma-help.c | 13 ++++++++++--- 1 file 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); -- cgit v1.2.1