From 874ef72c5b807b61bc53dbaa0fa623b40bff1736 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Mon, 30 Apr 2007 09:35:54 +0200 Subject: new upstream version --- widget_bar.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'widget_bar.c') 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, }; -- cgit v1.2.3