diff options
author | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2007-01-20 06:37:35 +0000 |
---|---|---|
committer | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2007-01-20 06:37:35 +0000 |
commit | ceb6fc010ee9f4fadbcbf3e3cdc481ec505cdc32 (patch) | |
tree | 8b0d4a217ccc9c6a61b4a72cfedf487433fb01e0 /widget_image.c | |
parent | 883d1546b2cc19b1ae1b0041cb8131baea814336 (diff) | |
download | lcd4linux-ceb6fc010ee9f4fadbcbf3e3cdc481ec505cdc32.tar.gz |
dynamic properties for bars; new 'property_valid()' helper
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@749 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_image.c')
-rw-r--r-- | widget_image.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/widget_image.c b/widget_image.c index 15ca90b..6320e44 100644 --- a/widget_image.c +++ b/widget_image.c @@ -230,6 +230,11 @@ int widget_image_init(WIDGET * Self) property_load(section, "visible", "1", &Image->visible); property_load(section, "inverted", "0", &Image->inverted); + /* sanity checks */ + if (!property_valid(&Image->file)) { + error("Warning: widget %s has no file", section); + } + free(section); Self->data = Image; |