summaryrefslogtreecommitdiff
path: root/package/lxpanel/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-04-16 09:27:32 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-04-16 09:27:32 +0200
commit47d9b1a201fbe824979e79bca856cb2d95a10fff (patch)
tree09ccc14ea151aa413610274184c4828cd9b19277 /package/lxpanel/patches
parent104fd4956517eee3a76add15b8f6cc6dc3047e96 (diff)
add more LXDE components
Diffstat (limited to 'package/lxpanel/patches')
-rw-r--r--package/lxpanel/patches/patch-src_plugins_batt_batt_c29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/lxpanel/patches/patch-src_plugins_batt_batt_c b/package/lxpanel/patches/patch-src_plugins_batt_batt_c
new file mode 100644
index 000000000..33467abc1
--- /dev/null
+++ b/package/lxpanel/patches/patch-src_plugins_batt_batt_c
@@ -0,0 +1,29 @@
+--- lxpanel-0.5.6.orig/src/plugins/batt/batt.c 2010-02-08 07:37:52.000000000 +0100
++++ lxpanel-0.5.6/src/plugins/batt/batt.c 2011-04-14 22:05:34.617672290 +0200
+@@ -95,7 +95,7 @@ typedef struct {
+ typedef struct {
+ char *command;
+ sem_t *lock;
+-} alarm;
++} alarms;
+
+ static void destructor(Plugin *p);
+ static void update_display(lx_battery *lx_b, gboolean repaint);
+@@ -103,7 +103,7 @@ static void update_display(lx_battery *l
+ /* alarmProcess takes the address of a dynamically allocated alarm struct (which
+ it must free). It ensures that alarm commands do not run concurrently. */
+ static void * alarmProcess(void *arg) {
+- alarm *a = (alarm *) arg;
++ alarms *a = (alarms *) arg;
+
+ sem_wait(a->lock);
+ system(a->command);
+@@ -157,7 +157,7 @@ void update_display(lx_battery *lx_b, gb
+ /* Run the alarm command if it isn't already running */
+ if (alarmCanRun) {
+
+- alarm *a = (alarm *) malloc(sizeof(alarm));
++ alarms *a = (alarms *) malloc(sizeof(alarms));
+ a->command = lx_b->alarmCommand;
+ a->lock = &(lx_b->alarmProcessLock);
+