ui/common/types.c

changeset 16
a499c8a72c15
parent 14
e2fd132ab781
child 39
4e66271541e8
equal deleted inserted replaced
15:7a36f91c22f7 16:a499c8a72c15
63 } 63 }
64 64
65 void ui_notify_except(UiObserver *observer, UiObserver *exc, void *data) { 65 void ui_notify_except(UiObserver *observer, UiObserver *exc, void *data) {
66 while(observer) { 66 while(observer) {
67 if(observer != exc) { 67 if(observer != exc) {
68 observer->callback(data, observer->data); 68 UiEvent evt;
69 evt.obj = NULL;
70 evt.window = NULL;
71 evt.document = NULL;
72 evt.eventdata = data;
73 evt.intval = 0;
74 observer->callback(&evt, observer->data);
69 } 75 }
70 observer = observer->next; 76 observer = observer->next;
71 } 77 }
72 } 78 }
73 79

mercurial