summaryrefslogtreecommitdiff
path: root/cpufreq/src/cpufreq-popup.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-01-06 01:49:39 -0500
committermonsta <[email protected]>2016-01-06 17:36:26 +0300
commitacc20eb50af01fcb6ca2a024b65913cc32a1e670 (patch)
treea24b232729a1fbacb6bace6af620b5b2d72ceb17 /cpufreq/src/cpufreq-popup.c
parent4a9c10288ab7dcd26c667c5d8fefbbc44e8c4cf3 (diff)
downloadmate-applets-acc20eb50af01fcb6ca2a024b65913cc32a1e670.tar.bz2
mate-applets-acc20eb50af01fcb6ca2a024b65913cc32a1e670.tar.xz
cpufreq: remove unused argument "parent"
remove unused argument "parent" in cpufreq_selector_set_xxx_async functions
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