Mercurial > MadButterfly
changeset 336:995eb2c1a1aa
Merge
author | wycc |
---|---|
date | Sat, 07 Mar 2009 14:25:20 +0800 |
parents | 01038b8d8f05 (diff) 02e457d374f5 (current diff) |
children | 55e0b22b919e 63aaf96209cd |
files | |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mbaf/mbbutton.c Sat Mar 07 11:03:18 2009 +0800 +++ b/src/mbaf/mbbutton.c Sat Mar 07 14:25:20 2009 +0800 @@ -56,6 +56,14 @@ mb_button_refresh(btn); } +static void mb_button_end_animated_cb(event_t *evt, void *arg) +{ + mb_button_t *btn = (mb_button_t *) arg; + + btn->progm = NULL; + +} + static void mb_button_pressed(event_t *evt, void *arg) { mb_button_t *btn = (mb_button_t *) arg; @@ -80,6 +88,7 @@ mb_visibility_new(VIS_HIDDEN, btn->click, word); mb_visibility_new(VIS_VISIBLE, btn->active, word); mb_progm_free_completed(progm); + subject_add_observer(mb_progm_get_complete(btn->progm), mb_button_end_animated_cb,btn); get_now(&now); printf("rt = %x\n", btn->rdman->rt); mb_progm_start(progm, X_MB_tman(btn->rdman->rt), &now);