wok view lxpanel/stuff/battery-plugin.patch @ rev 7566

Remove copying .desktop and icon file in zsnes receipt.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Dec 09 02:22:07 2010 +0000 (2010-12-09)
parents
children
line source
1 --- a/src/plugins/batt/batt.c 2010-02-08 07:37:52.000000000 +0100
2 +++ b/src/plugins/batt/batt.c 2010-09-27 02:24:22.781006054 +0200
3 @@ -95,7 +95,7 @@
4 typedef struct {
5 char *command;
6 sem_t *lock;
7 -} alarm;
8 +} Alarm;
10 static void destructor(Plugin *p);
11 static void update_display(lx_battery *lx_b, gboolean repaint);
12 @@ -103,7 +103,7 @@
13 /* alarmProcess takes the address of a dynamically allocated alarm struct (which
14 it must free). It ensures that alarm commands do not run concurrently. */
15 static void * alarmProcess(void *arg) {
16 - alarm *a = (alarm *) arg;
17 + Alarm *a = (Alarm *) arg;
19 sem_wait(a->lock);
20 system(a->command);
21 @@ -157,7 +157,7 @@
22 /* Run the alarm command if it isn't already running */
23 if (alarmCanRun) {
25 - alarm *a = (alarm *) malloc(sizeof(alarm));
26 + Alarm *a = (Alarm *) malloc(sizeof(alarm));
27 a->command = lx_b->alarmCommand;
28 a->lock = &(lx_b->alarmProcessLock);