* [gentoo-commits] gentoo-x86 commit in x11-plugins/pidgin-led-notification/files: pidgin-led-notification-0.1-hardware.patch
@ 2010-11-07 17:22 Michael Weber (xmw)
0 siblings, 0 replies; only message in thread
From: Michael Weber (xmw) @ 2010-11-07 17:22 UTC (permalink / raw
To: gentoo-commits
xmw 10/11/07 17:22:06
Added: pidgin-led-notification-0.1-hardware.patch
Log:
Initial import
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Revision Changes Path
1.1 x11-plugins/pidgin-led-notification/files/pidgin-led-notification-0.1-hardware.patch
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
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
Index: pidgin-led-notification-0.1-hardware.patch
===================================================================
--- led-notification-0.1/led-notification.c
+++ led-notification-0.1/led-notification.c
@@ -54,9 +54,9 @@
}
if(state) {
- fputs("1", file);
+ fputs(purple_prefs_get_string("/plugins/gtk/gtk-simom-lednot/led_on"), file);
} else {
- fputs("0", file);
+ fputs(purple_prefs_get_string("/plugins/gtk/gtk-simom-lednot/led_off"), file);
}
fclose(file);
@@ -155,6 +155,10 @@
ent=pidgin_prefs_labeled_entry(vbox2,"File to control led:",
"/plugins/gtk/gtk-simom-lednot/filename",sg);
+ ent=pidgin_prefs_labeled_entry(vbox2,"String to turn led on:",
+ "/plugins/gtk/gtk-simom-lednot/led_on",sg);
+ ent=pidgin_prefs_labeled_entry(vbox2,"String to turn led off:",
+ "/plugins/gtk/gtk-simom-lednot/led_off",sg);
gtk_widget_show_all(frame);
return frame;
@@ -166,6 +170,8 @@
purple_prefs_add_string("/plugins/gtk/gtk-simom-lednot/chat", "nick");
purple_prefs_add_string("/plugins/gtk/gtk-simom-lednot/filename",
"/proc/acpi/asus/mled");
+ purple_prefs_add_string("/plugins/gtk/gtk-simom-lednot/led_on", "1");
+ purple_prefs_add_string("/plugins/gtk/gtk-simom-lednot/led_off", "0");
}
static gboolean plugin_load(PurplePlugin *plugin) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-07 17:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-07 17:22 [gentoo-commits] gentoo-x86 commit in x11-plugins/pidgin-led-notification/files: pidgin-led-notification-0.1-hardware.patch Michael Weber (xmw)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox