summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivemount/drivemount.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/drivemount/drivemount.c b/drivemount/drivemount.c
index 196af363..3e0bdd2b 100644
--- a/drivemount/drivemount.c
+++ b/drivemount/drivemount.c
@@ -132,10 +132,17 @@ display_help (GtkAction *action,
screen = gtk_widget_get_screen (GTK_WIDGET (drive_list));
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (NULL,
+ "help:mate-drivemount",
+ gtk_get_current_event_time (),
+ &error);
+#else
gtk_show_uri (screen,
- "help:mate-drivemount",
- gtk_get_current_event_time (),
- &error);
+ "help:mate-drivemount",
+ gtk_get_current_event_time (),
+ &error);
+#endif
if (error) {
GtkWidget *dialog;