ui/motif/list.c

changeset 52
25e5390cce41
parent 43
157a21a914ac
child 60
7cd1b8890302
equal deleted inserted replaced
51:42506e19eb6b 52:25e5390cce41
152 XmListCallbackStruct *cbs = (XmListCallbackStruct *)data; 152 XmListCallbackStruct *cbs = (XmListCallbackStruct *)data;
153 153
154 UiEvent e; 154 UiEvent e;
155 e.obj = event->event.obj; 155 e.obj = event->event.obj;
156 e.window = event->event.obj->window; 156 e.window = event->event.obj->window;
157 e.document = event->event.obj->document; 157 e.document = event->event.obj->ctx->document;
158 e.eventdata = event->list->list->get(event->list->list, cbs->item_position - 1); 158 e.eventdata = event->list->list->get(event->list->list, cbs->item_position - 1);
159 e.intval = cbs->item_position - 1; 159 e.intval = cbs->item_position - 1;
160 event->event.callback(&e, event->event.user_data); 160 event->event.callback(&e, event->event.user_data);
161 } 161 }

mercurial