summaryrefslogtreecommitdiff
path: root/geyes/geyes.c
diff options
context:
space:
mode:
Diffstat (limited to 'geyes/geyes.c')
-rw-r--r--geyes/geyes.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/geyes/geyes.c b/geyes/geyes.c
index 5a49d129..22b3bbcb 100644
--- a/geyes/geyes.c
+++ b/geyes/geyes.c
@@ -342,10 +342,17 @@ help_cb (GtkAction *action,
{
GError *error = NULL;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (NULL,
+ "help:mate-geyes",
+ gtk_get_current_event_time (),
+ &error);
+#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (eyes_applet->applet)),
- "help:mate-geyes",
- gtk_get_current_event_time (),
- &error);
+ "help:mate-geyes",
+ gtk_get_current_event_time (),
+ &error);
+#endif
if (error) {
GtkWidget *dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,