summaryrefslogtreecommitdiff
path: root/accessx-status
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-28 19:03:25 +0200
committerraveit65 <[email protected]>2017-08-05 15:02:54 +0200
commit041de719d46ddd6fa92547f770242718291235fe (patch)
tree95f4de02a4106cfeeed328316777ec6bdea73df9 /accessx-status
parent0eea197fcca0f097c52d013c01a94391fd8990c0 (diff)
downloadmate-applets-041de719d46ddd6fa92547f770242718291235fe.tar.bz2
mate-applets-041de719d46ddd6fa92547f770242718291235fe.tar.xz
accessx-status: don't use deprecated gtk_show_uri
Diffstat (limited to 'accessx-status')
-rw-r--r--accessx-status/applet.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/accessx-status/applet.c b/accessx-status/applet.c
index a8ed1d69..665d5499 100644
--- a/accessx-status/applet.c
+++ b/accessx-status/applet.c
@@ -153,7 +153,14 @@ static void help_cb(GtkAction* action, AccessxStatusApplet* sapplet)
GError* error = NULL;
GdkScreen* screen = gtk_widget_get_screen(GTK_WIDGET(sapplet->applet));
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window(NULL,
+ "help:mate-accessx-status",
+ gtk_get_current_event_time(),
+ &error);
+#else
gtk_show_uri(screen, "help:mate-accessx-status", gtk_get_current_event_time(), &error);
+#endif
if (error)
{