summaryrefslogtreecommitdiff
path: root/cpufreq/src/cpufreq-popup.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpufreq/src/cpufreq-popup.c')
-rw-r--r--cpufreq/src/cpufreq-popup.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/cpufreq/src/cpufreq-popup.c b/cpufreq/src/cpufreq-popup.c
index 278ebaf4..faf0a480 100644
--- a/cpufreq/src/cpufreq-popup.c
+++ b/cpufreq/src/cpufreq-popup.c
@@ -188,7 +188,6 @@ cpufreq_popup_frequencies_menu_activate (GtkAction *action,
const gchar *name;
guint cpu;
guint freq;
- guint32 parent;
if (!gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)))
return;
@@ -198,12 +197,8 @@ cpufreq_popup_frequencies_menu_activate (GtkAction *action,
cpu = cpufreq_monitor_get_cpu (popup->priv->monitor);
name = gtk_action_get_name (action);
freq = (guint) atoi (name + strlen ("Frequency"));
- /*stop applet from turning transparent when menu clicked in gtk3.16 or later */
-#if !GTK_CHECK_VERSION (3, 0, 0)
- parent = GDK_WINDOW_XID (gtk_widget_get_window (popup->priv->parent));
-#endif
- cpufreq_selector_set_frequency_async (selector, cpu, freq, parent);
+ cpufreq_selector_set_frequency_async (selector, cpu, freq);
}
static void
@@ -214,7 +209,6 @@ cpufreq_popup_governors_menu_activate (GtkAction *action,
const gchar *name;
guint cpu;
const gchar *governor;
- guint32 parent;
if (!gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)))
return;
@@ -224,11 +218,8 @@ cpufreq_popup_governors_menu_activate (GtkAction *action,
cpu = cpufreq_monitor_get_cpu (popup->priv->monitor);
name = gtk_action_get_name (action);
governor = name + strlen ("Governor");
- /*stop applet from turning transparent when menu clicked in gtk3.16 or later */
-#if !GTK_CHECK_VERSION (3, 0, 0)
- parent = GDK_WINDOW_XID (gtk_widget_get_window (popup->priv->parent));
-#endif
- cpufreq_selector_set_governor_async (selector, cpu, governor, parent);
+
+ cpufreq_selector_set_governor_async (selector, cpu, governor);
}
static void