ui/common/types.c

changeset 2
ea89bbb0c4c8
parent 0
804d8803eade
equal deleted inserted replaced
1:fcacc15a2ef2 2:ea89bbb0c4c8
65 void ui_notify(UiObserver *observer, void *data) { 65 void ui_notify(UiObserver *observer, void *data) {
66 ui_notify_except(observer, NULL, data); 66 ui_notify_except(observer, NULL, data);
67 } 67 }
68 68
69 void ui_notify_except(UiObserver *observer, UiObserver *exc, void *data) { 69 void ui_notify_except(UiObserver *observer, UiObserver *exc, void *data) {
70 UiEvent evt;
71 evt.obj = NULL;
72 evt.window = NULL;
73 evt.document = NULL;
74 evt.eventdata = data;
75 evt.intval = 0;
76
70 while(observer) { 77 while(observer) {
71 if(observer != exc) { 78 if(observer != exc) {
72 UiEvent evt;
73 evt.obj = NULL;
74 evt.window = NULL;
75 evt.document = NULL;
76 evt.eventdata = data;
77 evt.intval = 0;
78 observer->callback(&evt, observer->data); 79 observer->callback(&evt, observer->data);
79 } 80 }
80 observer = observer->next; 81 observer = observer->next;
81 } 82 }
82 } 83 }

mercurial