~siretart/lcd4linux/debian

« back to all changes in this revision

Viewing changes to widget_timer.c

  • Committer: Reinhard Tartler
  • Date: 2011-04-27 17:28:49 UTC
  • mfrom: (0.1.1 upstream)
  • Revision ID: siretart@tauware.de-20110427172849-mj5cj5a0igpcc9fn
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: widget_timer.c 773 2007-02-25 12:39:09Z michael $
2
 
 * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/widget_timer.c $
 
1
/* $Id: widget_timer.c 1106 2010-02-07 14:03:46Z mzuther $
 
2
 * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_timer.c $
3
3
 *
4
4
 * timer widget handling
5
5
 *
6
 
 * Copyright (C) 2006 Michael Reinelt <reinelt@eunet.at>
 
6
 * Copyright (C) 2006 Michael Reinelt <michael@reinelt.co.at>
7
7
 * Copyright (C) 2006 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
8
8
 *
9
9
 * This program is free software; you can redistribute it and/or modify
22
22
 *
23
23
 */
24
24
 
25
 
/* 
 
25
/*
26
26
 * exported functions:
27
27
 *
28
28
 * WIDGET_CLASS Widget_Timer
42
42
#include "cfg.h"
43
43
#include "qprintf.h"
44
44
#include "property.h"
45
 
#include "timer.h"
 
45
#include "timer_group.h"
46
46
#include "widget.h"
47
47
#include "widget_timer.h"
48
48
 
72
72
    }
73
73
 
74
74
    /* add a new one-shot timer */
75
 
    timer_add(widget_timer_update, Self, update, 1);
 
75
    timer_add_widget(widget_timer_update, Self, update, 1);
76
76
}
77
77
 
78
78
 
98
98
 
99
99
    free(section);
100
100
    Self->data = Timer;
 
101
    Self->x2 = NOCOORD;
 
102
    Self->y2 = NOCOORD;
101
103
 
102
104
    /* just do it! */
103
105
    widget_timer_update(Self);