[Pkg-xfce-commits] r2195 - in goodies/xfce4-sensors-plugin/debian: . patches

corsac at alioth.debian.org corsac at alioth.debian.org
Wed Aug 6 06:27:42 UTC 2008


Author: corsac
Date: 2008-08-06 06:27:42 +0000 (Wed, 06 Aug 2008)
New Revision: 2195

Added:
   goodies/xfce4-sensors-plugin/debian/patches/02_fix-acpi-battery-path.patch
Modified:
   goodies/xfce4-sensors-plugin/debian/changelog
Log:
02_fix-acpi-battery-path added, don't add twice “battery” in path.

Modified: goodies/xfce4-sensors-plugin/debian/changelog
===================================================================
--- goodies/xfce4-sensors-plugin/debian/changelog	2008-08-06 06:12:00 UTC (rev 2194)
+++ goodies/xfce4-sensors-plugin/debian/changelog	2008-08-06 06:27:42 UTC (rev 2195)
@@ -8,8 +8,9 @@
     - 01_fix-acpi-fan-infos added, don't crash plugin when refreshing fan
       state. Thanks Daniel Gibson for debugging this and cooking the patch.
                                                                 closes: #491480
+    - 02_fix-acpi-battery-path added, don't add twice “battery” in path.
 
- -- Yves-Alexis Perez <corsac at debian.org>  Wed, 06 Aug 2008 08:01:59 +0200
+ -- Yves-Alexis Perez <corsac at debian.org>  Wed, 06 Aug 2008 08:18:11 +0200
 
 xfce4-sensors-plugin (0.10.99.5~svn-r4998-1) unstable; urgency=low
 

Added: goodies/xfce4-sensors-plugin/debian/patches/02_fix-acpi-battery-path.patch
===================================================================
--- goodies/xfce4-sensors-plugin/debian/patches/02_fix-acpi-battery-path.patch	                        (rev 0)
+++ goodies/xfce4-sensors-plugin/debian/patches/02_fix-acpi-battery-path.patch	2008-08-06 06:27:42 UTC (rev 2195)
@@ -0,0 +1,15 @@
+diff --git a/panel-plugin/acpi.c b/panel-plugin/acpi.c
+index 5f3ab4a..49b20bc 100644
+--- a/panel-plugin/acpi.c
++++ b/panel-plugin/acpi.c
+@@ -464,9 +464,7 @@ refresh_acpi (gpointer chip_feature, gpointer data)
+             break;
+ 
+         case ENERGY:
+-            zone = g_strdup_printf ("%s/%s", ACPI_DIR_BATTERY, cf->devicename);
+-            cf->raw_value = get_battery_zone_value (zone);
+-            g_free (zone);
++            cf->raw_value = get_battery_zone_value (cf->devicename);
+             /*  g_free (cf->formatted_value);
+             cf->formatted_value = g_strdup_printf (_("%.0f mWh"), cf->raw_value); */
+             break;




More information about the Pkg-xfce-commits mailing list