diff -Nru xfce4-cpufreq-plugin-1.0.0/debian/changelog xfce4-cpufreq-plugin-1.0.0/debian/changelog --- xfce4-cpufreq-plugin-1.0.0/debian/changelog 2011-04-25 10:36:50.000000000 +0000 +++ xfce4-cpufreq-plugin-1.0.0/debian/changelog 2012-01-23 14:57:47.000000000 +0000 @@ -1,3 +1,12 @@ +xfce4-cpufreq-plugin (1.0.0-4) unstable; 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 Mon, 23 Jan 2012 15:57:46 +0100 + xfce4-cpufreq-plugin (1.0.0-3) unstable; urgency=low * debian/patches: diff -Nru xfce4-cpufreq-plugin-1.0.0/debian/patches/02_refresh-selected-core.patch xfce4-cpufreq-plugin-1.0.0/debian/patches/02_refresh-selected-core.patch --- xfce4-cpufreq-plugin-1.0.0/debian/patches/02_refresh-selected-core.patch 1970-01-01 00:00:00.000000000 +0000 +++ xfce4-cpufreq-plugin-1.0.0/debian/patches/02_refresh-selected-core.patch 2012-01-08 21:34:52.000000000 +0000 @@ -0,0 +1,34 @@ +Description: Refresh the correct core/cpu on update +Author: Lionel Le Folgoc +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; + } + diff -Nru xfce4-cpufreq-plugin-1.0.0/debian/patches/series xfce4-cpufreq-plugin-1.0.0/debian/patches/series --- xfce4-cpufreq-plugin-1.0.0/debian/patches/series 2011-04-25 10:35:34.000000000 +0000 +++ xfce4-cpufreq-plugin-1.0.0/debian/patches/series 2012-01-08 21:34:52.000000000 +0000 @@ -1 +1,2 @@ 01_try-fix-ftbfs-bsd.patch +02_refresh-selected-core.patch