ui/gtk/tree.c

changeset 52
25e5390cce41
parent 42
29b2821d1262
child 59
eb6611be50c7
equal deleted inserted replaced
51:42506e19eb6b 52:25e5390cce41
237 event); 237 event);
238 238
239 UiEvent e; 239 UiEvent e;
240 e.obj = event->obj; 240 e.obj = event->obj;
241 e.window = event->obj->window; 241 e.window = event->obj->window;
242 e.document = event->obj->document; 242 e.document = event->obj->ctx->document;
243 e.eventdata = selection; 243 e.eventdata = selection;
244 e.intval = selection->count > 0 ? selection->rows[0] : -1; 244 e.intval = selection->count > 0 ? selection->rows[0] : -1;
245 event->activate(&e, event->userdata); 245 event->activate(&e, event->userdata);
246 246
247 free(selection); 247 free(selection);
254 UiListSelection *selection = ui_listview_selection(treeselection, event); 254 UiListSelection *selection = ui_listview_selection(treeselection, event);
255 255
256 UiEvent e; 256 UiEvent e;
257 e.obj = event->obj; 257 e.obj = event->obj;
258 e.window = event->obj->window; 258 e.window = event->obj->window;
259 e.document = event->obj->document; 259 e.document = event->obj->ctx->document;
260 e.eventdata = selection; 260 e.eventdata = selection;
261 e.intval = selection->count > 0 ? selection->rows[0] : -1; 261 e.intval = selection->count > 0 ? selection->rows[0] : -1;
262 event->selection(&e, event->userdata); 262 event->selection(&e, event->userdata);
263 263
264 free(selection); 264 free(selection);

mercurial