aboutsummaryrefslogtreecommitdiffstats
path: root/widget_bar.c
diff options
context:
space:
mode:
authorharbaum <harbaum@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-08-09 17:25:34 +0000
committerharbaum <harbaum@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-08-09 17:25:34 +0000
commitccf39796a1c59b0dec4b030a5791b71246e77e64 (patch)
treeee6be5361bbd51f23b16a0b932b3573366228b66 /widget_bar.c
parenta36ad95b8536da26e94846f9b7996b3ec09c8d13 (diff)
downloadlcd4linux-ccf39796a1c59b0dec4b030a5791b71246e77e64.tar.gz
[lcd4linux @ 2006-08-09 17:25:34 by harbaum]
Better bar color support and new bold font git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@685 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_bar.c')
-rw-r--r--widget_bar.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/widget_bar.c b/widget_bar.c
index 079e327..a03f74d 100644
--- a/widget_bar.c
+++ b/widget_bar.c
@@ -1,4 +1,4 @@
-/* $Id: widget_bar.c,v 1.18 2006/01/23 06:17:18 reinelt Exp $
+/* $Id: widget_bar.c,v 1.19 2006/08/09 17:25:34 harbaum Exp $
*
* bar widget handling
*
@@ -21,6 +21,9 @@
*
*
* $Log: widget_bar.c,v $
+ * Revision 1.19 2006/08/09 17:25:34 harbaum
+ * Better bar color support and new bold font
+ *
* Revision 1.18 2006/01/23 06:17:18 reinelt
* timer widget added
*
@@ -270,6 +273,10 @@ int widget_bar_init(WIDGET * Self)
/* update interval (msec), default 1 sec */
cfg_number(section, "update", 1000, 10, -1, &(Bar->update));
+ /* get widget special colors */
+ Bar->color_valid[0] = widget_color(section, Self->name, "barcolor0", &Bar->color[0]);
+ Bar->color_valid[1] = widget_color(section, Self->name, "barcolor1", &Bar->color[1]);
+
free(section);
Self->data = Bar;