summaryrefslogtreecommitdiff
path: root/applets/notification_area/main.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-07-28 23:44:13 -0400
committerlukefromdc <[email protected]>2017-07-29 13:17:11 -0400
commit33c4bd47a7210cd9e695ea1a2cbf26abbc3b7bed (patch)
tree0cf2f27fc73fa400c90dad18515f84d65be0f604 /applets/notification_area/main.c
parenta3129a0b2d0e8e51f423af255f7d12b0bf741369 (diff)
downloadmate-panel-33c4bd47a7210cd9e695ea1a2cbf26abbc3b7bed.tar.bz2
mate-panel-33c4bd47a7210cd9e695ea1a2cbf26abbc3b7bed.tar.xz
don't use deprecated gtk_show_uri
Diffstat (limited to 'applets/notification_area/main.c')
-rw-r--r--applets/notification_area/main.c6
1 files changed, 4 insertions, 2 deletions
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))