diff options
author | mzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2010-02-07 14:03:46 +0000 |
---|---|---|
committer | mzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2010-02-07 14:03:46 +0000 |
commit | 7496af7c8678b4ee97f9913b26dad028149eed79 (patch) | |
tree | 008656e48fb0026a7c36f4812757f53fb72b8423 /widget_text.c | |
parent | dcb29d2726791b4b770d4b36d27ee81d79a38f9e (diff) | |
download | lcd4linux-7496af7c8678b4ee97f9913b26dad028149eed79.tar.gz |
added grouping of widgets by update interval (new file "timer_group.c")
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1106 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_text.c')
-rw-r--r-- | widget_text.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/widget_text.c b/widget_text.c index c793f82..7c1ee7a 100644 --- a/widget_text.c +++ b/widget_text.c @@ -45,6 +45,7 @@ #include "evaluator.h" #include "property.h" #include "timer.h" +#include "timer_group.h" #include "event.h" #include "widget.h" #include "widget_text.h" @@ -398,7 +399,7 @@ int widget_text_init(WIDGET * Self) Self->y2 = Self->row; /* add update timer, use one-shot if 'update' is zero */ - timer_add(widget_text_update, Self, Text->update, Text->update == 0); + timer_add_widget(widget_text_update, Self, Text->update, Text->update == 0); /* a marquee scroller has its own timer and callback */ if (Text->align == ALIGN_MARQUEE || Text->align == ALIGN_AUTOMATIC || Text->align == ALIGN_PINGPONG_LEFT |