summaryrefslogtreecommitdiff
path: root/cpufreq/src/cpufreq-applet.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpufreq/src/cpufreq-applet.c')
-rw-r--r--cpufreq/src/cpufreq-applet.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c
index cff868f6..a726e156 100644
--- a/cpufreq/src/cpufreq-applet.c
+++ b/cpufreq/src/cpufreq-applet.c
@@ -577,10 +577,17 @@ cpufreq_applet_help_cb (GtkAction *action,
{
GError *error = NULL;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (NULL,
+ "help:mate-cpufreq-applet",
+ gtk_get_current_event_time (),
+ &error);
+#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (applet)),
- "help:mate-cpufreq-applet",
- gtk_get_current_event_time (),
- &error);
+ "help:mate-cpufreq-applet",
+ gtk_get_current_event_time (),
+ &error);
+#endif
if (error) {
cpufreq_utils_display_error (_("Could not open help document"),