summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-28 19:57:09 +0200
committerraveit65 <[email protected]>2017-08-05 15:02:54 +0200
commita59554afd9586e30e2203978472f76daca3eecc3 (patch)
treec7dbc1f5677c031f867da301f12984cd80b151a2
parent041de719d46ddd6fa92547f770242718291235fe (diff)
downloadmate-applets-a59554afd9586e30e2203978472f76daca3eecc3.tar.bz2
mate-applets-a59554afd9586e30e2203978472f76daca3eecc3.tar.xz
battstat: don't use deprecated gtk_show_uri
-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);