From 33c4bd47a7210cd9e695ea1a2cbf26abbc3b7bed Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Fri, 28 Jul 2017 23:44:13 -0400 Subject: don't use deprecated gtk_show_uri --- applets/clock/clock-utils.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'applets/clock') diff --git a/applets/clock/clock-utils.c b/applets/clock/clock-utils.c index 14cf06df..83b08fc6 100644 --- a/applets/clock/clock-utils.c +++ b/applets/clock/clock-utils.c @@ -72,10 +72,13 @@ clock_utils_display_help (GtkWidget *widget, uri = g_strdup_printf ("help:%s/%s", doc_id, link_id); else uri = g_strdup_printf ("help:%s", doc_id); - +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (NULL, uri, + gtk_get_current_event_time (), &error); +#else gtk_show_uri (gtk_widget_get_screen (widget), uri, - gtk_get_current_event_time (), &error); - + gtk_get_current_event_time (), &error); +#endif g_free (uri); if (error && -- cgit v1.2.1