aboutsummaryrefslogtreecommitdiffstats
path: root/widget_bar.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-06 06:37:34 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-06 06:37:34 +0000
commit4042833f1f9cf91aa6b174daf6bde964df13f776 (patch)
tree331a5a1bee265684a959f460a1071897282e8ab4 /widget_bar.c
parent68f0bcc303b6ba1ac102ed24d589fe9d64a74f73 (diff)
downloadlcd4linux-4042833f1f9cf91aa6b174daf6bde964df13f776.tar.gz
[lcd4linux @ 2005-05-06 06:37:34 by reinelt]
hollow bar patch from geronet git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@545 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_bar.c')
-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,
};
-
-