92 UiEvent e; |
92 UiEvent e; |
93 e.obj = event->obj; |
93 e.obj = event->obj; |
94 e.window = event->obj->window; |
94 e.window = event->obj->window; |
95 // TODO: e.document |
95 // TODO: e.document |
96 e.intval = tb->set; |
96 e.intval = tb->set; |
97 event->callback(&e, event->user_data); |
97 event->callback(&e, event->userdata); |
98 } |
98 } |
99 |
99 |
100 void ui_push_button_callback(Widget widget, UiEventData *event, XtPointer d) { |
100 void ui_push_button_callback(Widget widget, UiEventData *event, XtPointer d) { |
101 UiEvent e; |
101 UiEvent e; |
102 e.obj = event->obj; |
102 e.obj = event->obj; |
103 e.window = event->obj->window; |
103 e.window = event->obj->window; |
104 e.document = event->obj->ctx->document; |
104 e.document = event->obj->ctx->document; |
105 e.intval = event->value; |
105 e.intval = event->value; |
106 event->callback(&e, event->user_data); |
106 event->callback(&e, event->userdata); |
107 } |
107 } |