summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpufreq/src/cpufreq-applet.c13
-rw-r--r--cpufreq/src/cpufreq-prefs.c9
2 files changed, 16 insertions, 6 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"),
diff --git a/cpufreq/src/cpufreq-prefs.c b/cpufreq/src/cpufreq-prefs.c
index d703973a..43009ed0 100644
--- a/cpufreq/src/cpufreq-prefs.c
+++ b/cpufreq/src/cpufreq-prefs.c
@@ -358,12 +358,15 @@ cpufreq_prefs_dialog_response_cb (CPUFreqPrefs *prefs,
if (response == GTK_RESPONSE_HELP) {
#if GTK_CHECK_VERSION (3, 22, 0)
gtk_show_uri_on_window (GTK_WINDOW (prefs->priv->dialog),
+ "help:mate-cpufreq-applet/cpufreq-applet-prefs",
+ gtk_get_current_event_time (),
+ &error);
#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (prefs->priv->dialog)),
+ "help:mate-cpufreq-applet/cpufreq-applet-prefs",
+ gtk_get_current_event_time (),
+ &error);
#endif
- "help:mate-cpufreq-applet/cpufreq-applet-prefs",
- gtk_get_current_event_time (),
- &error);
if (error) {
cpufreq_utils_display_error (_("Could not open help document"),