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 } |