aboutsummaryrefslogtreecommitdiffstats
path: root/widget_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'widget_timer.c')
-rw-r--r--widget_timer.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/widget_timer.c b/widget_timer.c
index 23f8c02..4ba243e 100644
--- a/widget_timer.c
+++ b/widget_timer.c
@@ -1,9 +1,9 @@
-/* $Id: widget_timer.c 773 2007-02-25 12:39:09Z michael $
- * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/widget_timer.c $
+/* $Id: widget_timer.c 1106 2010-02-07 14:03:46Z mzuther $
+ * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_timer.c $
*
* timer widget handling
*
- * Copyright (C) 2006 Michael Reinelt <reinelt@eunet.at>
+ * Copyright (C) 2006 Michael Reinelt <michael@reinelt.co.at>
* Copyright (C) 2006 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_Timer
@@ -42,7 +42,7 @@
#include "cfg.h"
#include "qprintf.h"
#include "property.h"
-#include "timer.h"
+#include "timer_group.h"
#include "widget.h"
#include "widget_timer.h"
@@ -72,7 +72,7 @@ void widget_timer_update(void *Self)
}
/* add a new one-shot timer */
- timer_add(widget_timer_update, Self, update, 1);
+ timer_add_widget(widget_timer_update, Self, update, 1);
}
@@ -98,6 +98,8 @@ int widget_timer_init(WIDGET * Self)
free(section);
Self->data = Timer;
+ Self->x2 = NOCOORD;
+ Self->y2 = NOCOORD;
/* just do it! */
widget_timer_update(Self);