summaryrefslogtreecommitdiff
path: root/applets/wncklet/wncklet.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/wncklet/wncklet.c
parenta3129a0b2d0e8e51f423af255f7d12b0bf741369 (diff)
downloadmate-panel-33c4bd47a7210cd9e695ea1a2cbf26abbc3b7bed.tar.bz2
mate-panel-33c4bd47a7210cd9e695ea1a2cbf26abbc3b7bed.tar.xz
don't use deprecated gtk_show_uri
Diffstat (limited to 'applets/wncklet/wncklet.c')
-rw-r--r--applets/wncklet/wncklet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/applets/wncklet/wncklet.c b/applets/wncklet/wncklet.c
index 7ad3c0a1..9d863081 100644
--- a/applets/wncklet/wncklet.c
+++ b/applets/wncklet/wncklet.c
@@ -49,9 +49,11 @@ void wncklet_display_help(GtkWidget* widget, const char* doc_id, const char* lin
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);
-
+#endif
g_free(uri);
if (error && g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED))