aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin_file.c6
-rw-r--r--widget_text.c7
2 files changed, 10 insertions, 3 deletions
diff --git a/plugin_file.c b/plugin_file.c
index 368eec9..2fc9ea0 100644
--- a/plugin_file.c
+++ b/plugin_file.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_file.c,v 1.2 2006/07/19 01:57:01 cmay Exp $
+/* $Id: plugin_file.c,v 1.3 2006/09/13 05:33:39 reinelt Exp $
*
* plugin to perform simple file operations
*
@@ -23,6 +23,9 @@
*
*
* $Log: plugin_file.c,v $
+ * Revision 1.3 2006/09/13 05:33:39 reinelt
+ * plugin_file: return empty string if file cannot be read; widget_text: load property as 'string', not as variable (triggered an ugly bug with variable list reallocated)
+ *
* Revision 1.2 2006/07/19 01:57:01 cmay
* fixed double read of last line in file
*
@@ -70,6 +73,7 @@ static void my_readline(RESULT * result, RESULT * arg1, RESULT * arg2)
fp = fopen(R2S(arg1), "r");
if (!fp) {
error("readline couldn't open file '%s'", R2S(arg1));
+ value[0] = '\0';
} else {
i = 0;
while (!feof(fp) && i++ < reqline) {
diff --git a/widget_text.c b/widget_text.c
index d543534..3b4f52e 100644
--- a/widget_text.c
+++ b/widget_text.c
@@ -1,4 +1,4 @@
-/* $Id: widget_text.c,v 1.27 2006/08/13 18:14:03 harbaum Exp $
+/* $Id: widget_text.c,v 1.28 2006/09/13 05:33:39 reinelt Exp $
*
* simple text widget handling
*
@@ -21,6 +21,9 @@
*
*
* $Log: widget_text.c,v $
+ * Revision 1.28 2006/09/13 05:33:39 reinelt
+ * plugin_file: return empty string if file cannot be read; widget_text: load property as 'string', not as variable (triggered an ugly bug with variable list reallocated)
+ *
* Revision 1.27 2006/08/13 18:14:03 harbaum
* Added KVV plugin
*
@@ -363,7 +366,7 @@ int widget_text_init(WIDGET * Self)
property_load(section, "prefix", NULL, &Text->prefix);
property_load(section, "expression", NULL, &Text->value);
property_load(section, "postfix", NULL, &Text->postfix);
- property_load(section, "style", "norm", &Text->style);
+ property_load(section, "style", "'norm'", &Text->style);
/* field width, default 10 */
cfg_number(section, "width", 10, 0, -1, &(Text->width));
6bf33985665&follow=1'>indentationmichael4-330/+320 2011-07-27patch to replace outdate library libmpd with recent library libmpdclient from...michael2-240/+427 2011-07-27lcd4linux-wireless.patch from Hans de Goedemichael1-1/+1 2011-07-27st2205-width-height-swap.patch from Hans de Goedemichael1-2/+2 2011-07-27hwmon patch from Hans de Goedemichael1-0/+14 2011-07-27patch to support SureElectronicsDE-LD023 from Matt Joicemichael1-3/+16 2011-05-06Fixed keypad widget in GLCD2USBharbaum1-0/+7 2011-02-12timer.c: fixed detection of positive clock skew (and some typos)mzuther4-10/+10 2011-01-23timer.c: fixed clock skew detectionmzuther1-26/+46 2011-01-23timer.c: skip intermediate timer intervalsmzuther2-16/+46 2011-01-05fix for a bug introduced in the DE-LD021 drivermichael1-3/+3 2011-01-04indentationmichael2-3/+3 2011-01-04support for Sure Electronics DE-LD021 by Natanael Olaizmichael1-10/+8 2011-01-02driver for EFN LED modules by Tilman Glötznermichael9-21/+469 2010-11-28commented, corrected and beautified both timer and timer group codemzuther11-197/+511 2010-11-27finished commenting the timer codemzuther2-46/+138 2010-11-20started commenting the timer codemzuther5-52/+170 2010-11-19Added brightness support for GLCD2USBharbaum5-28/+8014