[Xfce4-commits] <xfce4-cpufreq-plugin:master> Fix a label display bug
Florian Rivoal
noreply at xfce.org
Thu Dec 30 18:50:02 CET 2010
Updating branch refs/heads/master
to af547d40dc75cea61097a9fa05053fd7b2e607fc (commit)
from 5352bc4fccc2ea0e000545005683829fddc4edd9 (commit)
commit af547d40dc75cea61097a9fa05053fd7b2e607fc
Author: Florian Rivoal <frivoal at xfce.org>
Date: Fri Dec 31 02:47:39 2010 +0900
Fix a label display bug
The label would not be properly initialized, showing up blank
initially, and in the case of systems without scaling, never being
updated.
panel-plugin/xfce4-cpufreq-configure.c | 2 --
panel-plugin/xfce4-cpufreq-plugin.c | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/xfce4-cpufreq-configure.c b/panel-plugin/xfce4-cpufreq-configure.c
index 7df09dd..1f04058 100644
--- a/panel-plugin/xfce4-cpufreq-configure.c
+++ b/panel-plugin/xfce4-cpufreq-configure.c
@@ -54,7 +54,6 @@ check_button_changed (GtkWidget *button, CpuFreqPluginConfigure *configure)
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button));
cpufreq_widgets ();
- cpufreq_update_plugin ();
}
static void
@@ -67,7 +66,6 @@ combo_changed (GtkWidget *combo, CpuFreqPluginConfigure *configure)
cpuFreq->options->show_cpu = selected;
cpufreq_widgets ();
- cpufreq_update_plugin ();
}
}
diff --git a/panel-plugin/xfce4-cpufreq-plugin.c b/panel-plugin/xfce4-cpufreq-plugin.c
index 8e22eb2..cc58542 100644
--- a/panel-plugin/xfce4-cpufreq-plugin.c
+++ b/panel-plugin/xfce4-cpufreq-plugin.c
@@ -178,6 +178,8 @@ cpufreq_widgets (void)
gtk_widget_show_all (cpuFreq->ebox);
gtk_container_add (GTK_CONTAINER (cpuFreq->plugin), cpuFreq->ebox);
xfce_panel_plugin_add_action_widget (cpuFreq->plugin, cpuFreq->ebox);
+
+ cpufreq_update_plugin ();
}
static void
More information about the Xfce4-commits
mailing list