[Pkg-xfce-commits] r6304 - in goodies/trunk/xfce4-cpufreq-plugin/debian: . patches
Lionel Le Folgoc
mrpouit-guest at alioth.debian.org
Sun Jan 8 09:34:53 UTC 2012
Author: mrpouit-guest
Date: 2012-01-08 21:34:52 +0000 (Sun, 08 Jan 2012)
New Revision: 6304
Added:
goodies/trunk/xfce4-cpufreq-plugin/debian/patches/02_refresh-selected-core.patch
Modified:
goodies/trunk/xfce4-cpufreq-plugin/debian/changelog
goodies/trunk/xfce4-cpufreq-plugin/debian/patches/series
Log:
* debian/patches:
- 02_refresh-selected-core.patch: added, refresh the core selected in the
config, instead of refreshing all of them and unconditionally displaying
the last one. Closes: #655028
Modified: goodies/trunk/xfce4-cpufreq-plugin/debian/changelog
===================================================================
--- goodies/trunk/xfce4-cpufreq-plugin/debian/changelog 2012-01-07 01:23:20 UTC (rev 6303)
+++ goodies/trunk/xfce4-cpufreq-plugin/debian/changelog 2012-01-08 21:34:52 UTC (rev 6304)
@@ -1,3 +1,12 @@
+xfce4-cpufreq-plugin (1.0.0-4) UNRELEASED; urgency=low
+
+ * debian/patches:
+ - 02_refresh-selected-core.patch: added, refresh the core selected in the
+ config, instead of refreshing all of them and unconditionally displaying
+ the last one. Closes: #655028
+
+ -- Lionel Le Folgoc <mrpouit at gmail.com> Sun, 08 Jan 2012 22:15:10 +0100
+
xfce4-cpufreq-plugin (1.0.0-3) unstable; urgency=low
* debian/patches:
Added: goodies/trunk/xfce4-cpufreq-plugin/debian/patches/02_refresh-selected-core.patch
===================================================================
--- goodies/trunk/xfce4-cpufreq-plugin/debian/patches/02_refresh-selected-core.patch (rev 0)
+++ goodies/trunk/xfce4-cpufreq-plugin/debian/patches/02_refresh-selected-core.patch 2012-01-08 21:34:52 UTC (rev 6304)
@@ -0,0 +1,34 @@
+Description: Refresh the correct core/cpu on update
+Author: Lionel Le Folgoc <mrpouit at gmail.com>
+Bug: https://bugzilla.xfce.org/show_bug.cgi?id=7179
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655028
+Forwarded: yes, https://bugzilla.xfce.org/attachment.cgi?id=4089
+
+--- xfce4-cpufreq-plugin-1.0.0.orig/panel-plugin/xfce4-cpufreq-plugin.c
++++ xfce4-cpufreq-plugin-1.0.0/panel-plugin/xfce4-cpufreq-plugin.c
+@@ -118,15 +118,16 @@ cpufreq_update_tooltip (CpuInfo *cpu)
+ gboolean
+ cpufreq_update_plugin (void)
+ {
+- gint i;
+- for (i = 0; i < cpuFreq->cpus->len; i++)
+- {
+- CpuInfo *cpu = g_ptr_array_index (cpuFreq->cpus, i);
+- if (cpufreq_update_label (cpu) == FALSE)
+- return FALSE;
+- if (cpufreq_update_tooltip (cpu) == FALSE)
+- return FALSE;
+- }
++ CpuInfo *cpu;
++
++ g_return_val_if_fail (cpuFreq->options->show_cpu < cpuFreq->cpus->len, FALSE);
++
++ cpu = g_ptr_array_index (cpuFreq->cpus, cpuFreq->options->show_cpu);
++ if (cpufreq_update_label (cpu) == FALSE)
++ return FALSE;
++ if (cpufreq_update_tooltip (cpu) == FALSE)
++ return FALSE;
++
+ return TRUE;
+ }
+
Modified: goodies/trunk/xfce4-cpufreq-plugin/debian/patches/series
===================================================================
--- goodies/trunk/xfce4-cpufreq-plugin/debian/patches/series 2012-01-07 01:23:20 UTC (rev 6303)
+++ goodies/trunk/xfce4-cpufreq-plugin/debian/patches/series 2012-01-08 21:34:52 UTC (rev 6304)
@@ -1 +1,2 @@
01_try-fix-ftbfs-bsd.patch
+02_refresh-selected-core.patch
More information about the Pkg-xfce-commits
mailing list