wok-stable rev 6423
lxpanel : patch battery plugin
author | Antoine Bodin <gokhlayeh@mailoo.org> |
---|---|
date | Mon Sep 27 02:41:42 2010 +0200 (2010-09-27) |
parents | b81a1aeb22bd |
children | 22302c6b4b2d |
files | lxpanel/receipt lxpanel/stuff/battery-plugin.patch |
line diff
1.1 --- a/lxpanel/receipt Sun Sep 26 18:47:05 2010 +0000 1.2 +++ b/lxpanel/receipt Mon Sep 27 02:41:42 2010 +0200 1.3 @@ -20,10 +20,12 @@ 1.4 { 1.5 cd $src 1.6 #patch -p1 -i ../stuff/Fix-failure-to-react-to-keyboard-map-changes-initiat.patch 1.7 + # Devnote : this patch shouldn't be necessary in next release of lxpanel (current : 0.5.6). 1.8 + patch -p1 -i ../stuff/battery-plugin.patch 1.9 ./configure \ 1.10 --prefix=/usr \ 1.11 --sysconfdir=/etc \ 1.12 - --with-plugins=cpu,cpufreq,deskno,kbled,netstatus,thermal,volume,volumealsa,xkb \ 1.13 + --with-plugins=all \ 1.14 $CONFIGURE_ARGS && 1.15 make && 1.16 make DESTDIR=$PWD/_pkg install
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/lxpanel/stuff/battery-plugin.patch Mon Sep 27 02:41:42 2010 +0200 2.3 @@ -0,0 +1,29 @@ 2.4 +--- a/src/plugins/batt/batt.c 2010-02-08 07:37:52.000000000 +0100 2.5 ++++ b/src/plugins/batt/batt.c 2010-09-27 02:24:22.781006054 +0200 2.6 +@@ -95,7 +95,7 @@ 2.7 + typedef struct { 2.8 + char *command; 2.9 + sem_t *lock; 2.10 +-} alarm; 2.11 ++} Alarm; 2.12 + 2.13 + static void destructor(Plugin *p); 2.14 + static void update_display(lx_battery *lx_b, gboolean repaint); 2.15 +@@ -103,7 +103,7 @@ 2.16 + /* alarmProcess takes the address of a dynamically allocated alarm struct (which 2.17 + it must free). It ensures that alarm commands do not run concurrently. */ 2.18 + static void * alarmProcess(void *arg) { 2.19 +- alarm *a = (alarm *) arg; 2.20 ++ Alarm *a = (Alarm *) arg; 2.21 + 2.22 + sem_wait(a->lock); 2.23 + system(a->command); 2.24 +@@ -157,7 +157,7 @@ 2.25 + /* Run the alarm command if it isn't already running */ 2.26 + if (alarmCanRun) { 2.27 + 2.28 +- alarm *a = (alarm *) malloc(sizeof(alarm)); 2.29 ++ Alarm *a = (Alarm *) malloc(sizeof(alarm)); 2.30 + a->command = lx_b->alarmCommand; 2.31 + a->lock = &(lx_b->alarmProcessLock); 2.32 +