diff options
author | Eleni Maria Stea <elene.mst@gmail.com> | 2013-04-18 10:03:07 +0300 |
---|---|---|
committer | Eleni Maria Stea <elene.mst@gmail.com> | 2013-04-18 10:03:07 +0300 |
commit | ba5399dd00001b5abf21bd1b859bbfc39b8cbdbb (patch) | |
tree | 4afc27af0a009ed9390f222e2723723a81f455fa /clock/src | |
parent | 1eb2a154bd2294c20b37ce67ab17e8a2e90f6ee1 (diff) |
new clients - license
Diffstat (limited to 'clock/src')
-rw-r--r-- | clock/src/clockface.h | 21 | ||||
-rw-r--r-- | clock/src/main.cc | 4 |
2 files changed, 24 insertions, 1 deletions
diff --git a/clock/src/clockface.h b/clock/src/clockface.h index f3bf1e5..957b081 100644 --- a/clock/src/clockface.h +++ b/clock/src/clockface.h @@ -1,3 +1,24 @@ +/* +winnie - an experimental window system + +Copyright (C) 2013 Eleni Maria Stea + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. + +Author: Eleni Maria Stea <elene.mst@gmail.com> +*/ + /* GIMP RGB C-Source image dump (clockface.c) */ static const struct { diff --git a/clock/src/main.cc b/clock/src/main.cc index 3ede2e1..50743d4 100644 --- a/clock/src/main.cc +++ b/clock/src/main.cc @@ -58,6 +58,8 @@ extern "C" bool init() } wm->add_window(clock_win); + + set_window_timer(clock_win, 1000, TIMER_REPEAT); return true; } @@ -139,5 +141,5 @@ static void motion(Window *win, int x, int y) static void timer(Window *win) { - gfx_update(win->get_absolute_rect()); + wm->invalidate_region(win->get_absolute_rect()); } |