aboutsummaryrefslogtreecommitdiffstats
path: root/widget_icon.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-01-23 06:17:18 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-01-23 06:17:18 +0000
commit5279f0ae745e91e24299faa254f4c4375971114e (patch)
tree013c1d2a26d499b1ea3417ce9ff754af16014804 /widget_icon.c
parent2b191ce8986564f905535c23fcd70f85309d3917 (diff)
downloadlcd4linux-5279f0ae745e91e24299faa254f4c4375971114e.tar.gz
[lcd4linux @ 2006-01-23 06:17:18 by reinelt]
timer widget added git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@623 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_icon.c')
-rw-r--r--widget_icon.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/widget_icon.c b/widget_icon.c
index 4f12aac..e677f56 100644
--- a/widget_icon.c
+++ b/widget_icon.c
@@ -1,4 +1,4 @@
-/* $Id: widget_icon.c,v 1.21 2006/01/22 10:01:09 reinelt Exp $
+/* $Id: widget_icon.c,v 1.22 2006/01/23 06:17:18 reinelt Exp $
*
* icon widget handling
*
@@ -21,6 +21,9 @@
*
*
* $Log: widget_icon.c,v $
+ * Revision 1.22 2006/01/23 06:17:18 reinelt
+ * timer widget added
+ *
* Revision 1.21 2006/01/22 10:01:09 reinelt
* allow 'static' icons with speed=0
*
@@ -245,16 +248,16 @@ int widget_icon_init(WIDGET * Self)
Icon->speed_expr = cfg_get_raw(section, "speed", NULL);
Icon->visible_expr = cfg_get_raw(section, "visible", NULL);
- /* compile'em */
- Compile(Icon->speed_expr, &Icon->speed_tree);
- Compile(Icon->visible_expr, &Icon->visible_tree);
-
/* sanity check */
if (Icon->speed_expr == NULL || *Icon->speed_expr == '\0') {
error("Icon %s has no speed, using '100'", Self->name);
Icon->speed_expr = "100";
}
+ /* compile'em */
+ Compile(Icon->speed_expr, &Icon->speed_tree);
+ Compile(Icon->visible_expr, &Icon->visible_tree);
+
/* read bitmap */
widget_icon_read_bitmap(section, Icon);
@@ -308,7 +311,7 @@ int widget_icon_quit(WIDGET * Self)
WIDGET_CLASS Widget_Icon = {
name:"icon",
- type:WIDGET_TYPE_VIS,
+ type:WIDGET_TYPE_RC,
init:widget_icon_init,
draw:NULL,
quit:widget_icon_quit,