aboutsummaryrefslogtreecommitdiffstats
path: root/widget_bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'widget_bar.c')
-rw-r--r--widget_bar.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/widget_bar.c b/widget_bar.c
index cd2fd1d..7421205 100644
--- a/widget_bar.c
+++ b/widget_bar.c
@@ -1,4 +1,4 @@
-/* $Id: widget_bar.c 753 2007-01-21 06:19:17Z michael $
+/* $Id: widget_bar.c 789 2007-04-30 04:48:10Z michael $
* $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/widget_bar.c $
*
* bar widget handling
@@ -84,7 +84,7 @@ void widget_bar_update(void *Self)
/* maximum: if expression is empty, do auto-scaling */
if (property_valid(&Bar->expr_max)) {
property_eval(&Bar->expr_max);
- max = P2N(&Bar->expr_min);
+ max = P2N(&Bar->expr_max);
} else {
max = Bar->max;
if (val1 > max)
@@ -214,9 +214,9 @@ int widget_bar_quit(WIDGET * Self)
WIDGET_CLASS Widget_Bar = {
- name:"bar",
- type:WIDGET_TYPE_RC,
- init:widget_bar_init,
- draw:NULL,
- quit:widget_bar_quit,
+ .name = "bar",
+ .type = WIDGET_TYPE_RC,
+ .init = widget_bar_init,
+ .draw = NULL,
+ .quit = widget_bar_quit,
};