aboutsummaryrefslogtreecommitdiffstats
path: root/widget_bar.c
diff options
context:
space:
mode:
authorreinelt <>2005-05-06 06:37:34 +0000
committerreinelt <>2005-05-06 06:37:34 +0000
commitfd213b79c1c7bae053920db05c8b0a79e2d62fd4 (patch)
tree331a5a1bee265684a959f460a1071897282e8ab4 /widget_bar.c
parent35f5c1546dc5d4b69bb614416e6dc5dfe8706a68 (diff)
downloadlcd4linux-fd213b79c1c7bae053920db05c8b0a79e2d62fd4.tar.gz
[lcd4linux @ 2005-05-06 06:37:34 by reinelt]
hollow bar patch from geronet
Diffstat (limited to '')
-rw-r--r--widget_bar.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/widget_bar.c b/widget_bar.c
index 6e0f54c..7cb8956 100644
--- a/widget_bar.c
+++ b/widget_bar.c
@@ -1,4 +1,4 @@
-/* $Id: widget_bar.c,v 1.14 2005/01/18 06:30:24 reinelt Exp $
+/* $Id: widget_bar.c,v 1.15 2005/05/06 06:37:34 reinelt Exp $
*
* bar widget handling
*
@@ -21,6 +21,9 @@
*
*
* $Log: widget_bar.c,v $
+ * Revision 1.15 2005/05/06 06:37:34 reinelt
+ * hollow bar patch from geronet
+ *
* Revision 1.14 2005/01/18 06:30:24 reinelt
* added (C) to all copyright statements
*
@@ -235,6 +238,23 @@ int widget_bar_init (WIDGET *Self)
}
free (c);
+ /* style: none (default), hollow */
+ c = cfg_get (section, "style", "0");
+ switch (toupper (*c))
+ {
+ case 'H':
+ Bar->style = STYLE_HOLLOW;
+ if (!(Bar->direction & (DIR_EAST | DIR_WEST)))
+ {
+ error ("widget %s with style \"hollow\" not implemented", Self->name);
+ Bar->style = 0;
+ }
+ break;
+ default:
+ Bar->style = 0;
+ }
+ free (c);
+
/* update interval (msec), default 1 sec */
cfg_number (section, "update", 1000, 10, -1, &(Bar->update));
@@ -274,5 +294,3 @@ WIDGET_CLASS Widget_Bar = {
draw: NULL,
quit: widget_bar_quit,
};
-
-