~siretart/lcd4linux/debian

« back to all changes in this revision

Viewing changes to widget_gpo.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_gpo.c 773 2007-02-25 12:39:09Z michael $
2
 
 * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/widget_gpo.c $
 
1
/* $Id: widget_gpo.c 1106 2010-02-07 14:03:46Z mzuther $
 
2
 * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_gpo.c $
3
3
 *
4
4
 * GPO widget handling
5
5
 *
6
 
 * Copyright (C) 2005 Michael Reinelt <reinelt@eunet.at>
 
6
 * Copyright (C) 2005 Michael Reinelt <michael@reinelt.co.at>
7
7
 * Copyright (C) 2005, 2006, 2007 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_GPO
41
41
#include "debug.h"
42
42
#include "cfg.h"
43
43
#include "property.h"
44
 
#include "timer.h"
 
44
#include "timer_group.h"
45
45
#include "widget.h"
46
46
#include "widget_gpo.h"
47
47
 
65
65
 
66
66
    /* add a new one-shot timer */
67
67
    if (P2N(&GPO->update) > 0) {
68
 
        timer_add(widget_gpo_update, Self, P2N(&GPO->update), 1);
 
68
        timer_add_widget(widget_gpo_update, Self, P2N(&GPO->update), 1);
69
69
    }
70
70
 
71
71
}
96
96
 
97
97
    free(section);
98
98
    Self->data = GPO;
 
99
    /* no display dimension */
 
100
    Self->x2 = NOCOORD;
 
101
    Self->y2 = NOCOORD;
99
102
 
100
103
    /* fire it the first time */
101
104
    widget_gpo_update(Self);