summaryrefslogtreecommitdiff
path: root/cpufreq/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpufreq/src')
-rw-r--r--cpufreq/src/cpufreq-applet.c7
-rw-r--r--cpufreq/src/cpufreq-prefs.c7
2 files changed, 0 insertions, 14 deletions
diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c
index 4b22ea21..335c8c63 100644
--- a/cpufreq/src/cpufreq-applet.c
+++ b/cpufreq/src/cpufreq-applet.c
@@ -593,17 +593,10 @@ 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);
-#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 43009ed0..38c28402 100644
--- a/cpufreq/src/cpufreq-prefs.c
+++ b/cpufreq/src/cpufreq-prefs.c
@@ -356,17 +356,10 @@ cpufreq_prefs_dialog_response_cb (CPUFreqPrefs *prefs,
GError *error = NULL;
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
if (error) {
cpufreq_utils_display_error (_("Could not open help document"),