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/notification_area/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'applets/notification_area') diff --git a/applets/notification_area/main.c b/applets/notification_area/main.c index f4de7d01..6818ce5e 100644 --- a/applets/notification_area/main.c +++ b/applets/notification_area/main.c @@ -104,9 +104,11 @@ static void help_cb(GtkAction* action, NaTrayApplet* applet) #define NA_HELP_DOC "mate-user-guide" uri = g_strdup_printf("help:%s/%s", NA_HELP_DOC, "panels-notification-area"); - +#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(GTK_WIDGET(applet)), uri, gtk_get_current_event_time(), &error); - +#endif g_free(uri); if (error && g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) -- cgit v1.2.1