aboutsummaryrefslogtreecommitdiffstats
path: root/widget_bar.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2008-12-31 06:24:00 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2008-12-31 06:24:00 +0000
commit457102be1ccf791d2a70902dfd3eabf408744d8d (patch)
tree53aac19e062bc2338cc42f2e071bd48d22f73a10 /widget_bar.c
parentdb6f8bf4db26cc0dd4349f2d67b90c6802c5a772 (diff)
downloadlcd4linux-457102be1ccf791d2a70902dfd3eabf408744d8d.tar.gz
r828: 'additional verbose and info messages' ported from volker_dev
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@922 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_bar.c')
-rw-r--r--widget_bar.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/widget_bar.c b/widget_bar.c
index 5000e6c..372e3bf 100644
--- a/widget_bar.c
+++ b/widget_bar.c
@@ -156,7 +156,8 @@ int widget_bar_init(WIDGET * Self)
Bar->direction = DIR_SOUTH;
break;
default:
- error("widget %s has unknown direction '%s', using 'East'", Self->name, c);
+ error("widget %s has unknown direction '%s'; known directions: 'E', 'W', 'N', 'S'; using 'E(ast)'", Self->name,
+ c);
Bar->direction = DIR_EAST;
}
free(c);
@@ -167,11 +168,16 @@ int widget_bar_init(WIDGET * Self)
case 'H':
Bar->style = STYLE_HOLLOW;
if (!(Bar->direction & (DIR_EAST | DIR_WEST))) {
- error("widget %s with style \"hollow\" not implemented", Self->name);
+ error("widget %s with style \"hollow\" not implemented for other directions than E(ast) or W(est)",
+ Self->name);
Bar->style = 0;
}
break;
+ case '0':
+ Bar->style = 0;
+ break;
default:
+ error("widget %s has unknown style '%s'; known styles: '0' or 'H'; using '0'", Self->name, c);
Bar->style = 0;
}
free(c);