diff options
Diffstat (limited to 'widget_gpo.c')
-rw-r--r-- | widget_gpo.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/widget_gpo.c b/widget_gpo.c index e6dbaca..2b56f32 100644 --- a/widget_gpo.c +++ b/widget_gpo.c @@ -1,9 +1,9 @@ -/* $Id: widget_gpo.c 773 2007-02-25 12:39:09Z michael $ - * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/widget_gpo.c $ +/* $Id: widget_gpo.c 1106 2010-02-07 14:03:46Z mzuther $ + * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_gpo.c $ * * GPO widget handling * - * Copyright (C) 2005 Michael Reinelt <reinelt@eunet.at> + * Copyright (C) 2005 Michael Reinelt <michael@reinelt.co.at> * Copyright (C) 2005, 2006, 2007 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net> * * This program is free software; you can redistribute it and/or modify @@ -22,7 +22,7 @@ * */ -/* +/* * exported functions: * * WIDGET_CLASS Widget_GPO @@ -41,7 +41,7 @@ #include "debug.h" #include "cfg.h" #include "property.h" -#include "timer.h" +#include "timer_group.h" #include "widget.h" #include "widget_gpo.h" @@ -65,7 +65,7 @@ void widget_gpo_update(void *Self) /* add a new one-shot timer */ if (P2N(&GPO->update) > 0) { - timer_add(widget_gpo_update, Self, P2N(&GPO->update), 1); + timer_add_widget(widget_gpo_update, Self, P2N(&GPO->update), 1); } } @@ -96,6 +96,9 @@ int widget_gpo_init(WIDGET * Self) free(section); Self->data = GPO; + /* no display dimension */ + Self->x2 = NOCOORD; + Self->y2 = NOCOORD; /* fire it the first time */ widget_gpo_update(Self); |