diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-13 08:18:20 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-13 08:18:20 +0000 |
commit | 3cac7824479e0eef3b0bc6e33e5b4d157119a646 (patch) | |
tree | 50b1ca62db5a55df61dcea29017a1852d1e01f9b /widget_text.c | |
parent | 14bc006adad8578e31e557d7ffb57971284a0846 (diff) | |
download | lcd4linux-3cac7824479e0eef3b0bc6e33e5b4d157119a646.tar.gz |
[lcd4linux @ 2004-01-13 08:18:07 by reinelt]
timer queues added
liblcd4linux deactivated turing transformation to new layout
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@308 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_text.c')
-rw-r--r-- | widget_text.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/widget_text.c b/widget_text.c index c644ce6..4fc1ef8 100644 --- a/widget_text.c +++ b/widget_text.c @@ -1,4 +1,4 @@ -/* $Id: widget_text.c,v 1.2 2004/01/11 18:26:02 reinelt Exp $ +/* $Id: widget_text.c,v 1.3 2004/01/13 08:18:20 reinelt Exp $ * * simple text widget handling * @@ -21,6 +21,10 @@ * * * $Log: widget_text.c,v $ + * Revision 1.3 2004/01/13 08:18:20 reinelt + * timer queues added + * liblcd4linux deactivated turing transformation to new layout + * * Revision 1.2 2004/01/11 18:26:02 reinelt * further widget and layout processing * @@ -48,6 +52,7 @@ #include "debug.h" #include "cfg.h" +#include "timer.h" #include "widget.h" @@ -59,13 +64,19 @@ typedef struct WIDGET_TEXT { } WIDGET_TEXT; +void widget_text_callback (void *vSelf) +{ + WIDGET *Self=(WIDGET*)vSelf; + + debug ("callback: Self->name=%s", Self->name); +} + + int widget_text_init (WIDGET *Self) { char *section; WIDGET_TEXT *data; - debug ("Michi: widget_text_init(%s)", Self->name); - // prepare config section // strlen("Widget:")=7 section=malloc(strlen(Self->name)+8); @@ -83,6 +94,8 @@ int widget_text_init (WIDGET *Self) { free (section); Self->data=data; + debug ("timer_add: Self=%p Self->name=%s", Self, Self->name); + timer_add (widget_text_callback, Self, 200, 0); return 0; } |