From 3cac7824479e0eef3b0bc6e33e5b4d157119a646 Mon Sep 17 00:00:00 2001 From: reinelt Date: Tue, 13 Jan 2004 08:18:20 +0000 Subject: [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 --- widget_text.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'widget_text.c') 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; } -- cgit v1.2.3