summaryrefslogtreecommitdiff
path: root/geyes/themes.c
diff options
context:
space:
mode:
Diffstat (limited to 'geyes/themes.c')
-rw-r--r--geyes/themes.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/geyes/themes.c b/geyes/themes.c
index 3af628c8..01924ea8 100644
--- a/geyes/themes.c
+++ b/geyes/themes.c
@@ -212,10 +212,17 @@ phelp_cb (GtkDialog *dialog)
{
GError *error = NULL;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (GTK_WINDOW (dialog),
+ "help:mate-geyes/geyes-settings",
+ gtk_get_current_event_time (),
+ &error);
+#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (dialog)),
- "help:mate-geyes/geyes-settings",
- gtk_get_current_event_time (),
- &error);
+ "help:mate-geyes/geyes-settings",
+ gtk_get_current_event_time (),
+ &error);
+#endif
if (error) {
GtkWidget *error_dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,