summaryrefslogtreecommitdiff
path: root/battstat/battstat_applet.c
diff options
context:
space:
mode:
Diffstat (limited to 'battstat/battstat_applet.c')
-rw-r--r--battstat/battstat_applet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c
index f724b697..2d60fb81 100644
--- a/battstat/battstat_applet.c
+++ b/battstat/battstat_applet.c
@@ -1136,7 +1136,11 @@ battstat_show_help( ProgressData *battstat, const char *section )
else
uri = g_strdup ("help:mate-battstat");
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (NULL,
+#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (battstat->applet)),
+#endif
uri,
gtk_get_current_event_time (),
&error);