1 |
xmw 10/11/07 17:22:06 |
2 |
|
3 |
Added: pidgin-led-notification-0.1-hardware.patch |
4 |
Log: |
5 |
Initial import |
6 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 x11-plugins/pidgin-led-notification/files/pidgin-led-notification-0.1-hardware.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/pidgin-led-notification/files/pidgin-led-notification-0.1-hardware.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/pidgin-led-notification/files/pidgin-led-notification-0.1-hardware.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: pidgin-led-notification-0.1-hardware.patch |
15 |
=================================================================== |
16 |
--- led-notification-0.1/led-notification.c |
17 |
+++ led-notification-0.1/led-notification.c |
18 |
@@ -54,9 +54,9 @@ |
19 |
} |
20 |
|
21 |
if(state) { |
22 |
- fputs("1", file); |
23 |
+ fputs(purple_prefs_get_string("/plugins/gtk/gtk-simom-lednot/led_on"), file); |
24 |
} else { |
25 |
- fputs("0", file); |
26 |
+ fputs(purple_prefs_get_string("/plugins/gtk/gtk-simom-lednot/led_off"), file); |
27 |
} |
28 |
|
29 |
fclose(file); |
30 |
@@ -155,6 +155,10 @@ |
31 |
|
32 |
ent=pidgin_prefs_labeled_entry(vbox2,"File to control led:", |
33 |
"/plugins/gtk/gtk-simom-lednot/filename",sg); |
34 |
+ ent=pidgin_prefs_labeled_entry(vbox2,"String to turn led on:", |
35 |
+ "/plugins/gtk/gtk-simom-lednot/led_on",sg); |
36 |
+ ent=pidgin_prefs_labeled_entry(vbox2,"String to turn led off:", |
37 |
+ "/plugins/gtk/gtk-simom-lednot/led_off",sg); |
38 |
|
39 |
gtk_widget_show_all(frame); |
40 |
return frame; |
41 |
@@ -166,6 +170,8 @@ |
42 |
purple_prefs_add_string("/plugins/gtk/gtk-simom-lednot/chat", "nick"); |
43 |
purple_prefs_add_string("/plugins/gtk/gtk-simom-lednot/filename", |
44 |
"/proc/acpi/asus/mled"); |
45 |
+ purple_prefs_add_string("/plugins/gtk/gtk-simom-lednot/led_on", "1"); |
46 |
+ purple_prefs_add_string("/plugins/gtk/gtk-simom-lednot/led_off", "0"); |
47 |
} |
48 |
|
49 |
static gboolean plugin_load(PurplePlugin *plugin) { |