diff -r 42506e19eb6b -r 25e5390cce41 ui/gtk/tree.c --- a/ui/gtk/tree.c Fri Jun 13 10:39:54 2014 +0200 +++ b/ui/gtk/tree.c Tue Jul 22 09:51:17 2014 +0200 @@ -239,7 +239,7 @@ UiEvent e; e.obj = event->obj; e.window = event->obj->window; - e.document = event->obj->document; + e.document = event->obj->ctx->document; e.eventdata = selection; e.intval = selection->count > 0 ? selection->rows[0] : -1; event->activate(&e, event->userdata); @@ -256,7 +256,7 @@ UiEvent e; e.obj = event->obj; e.window = event->obj->window; - e.document = event->obj->document; + e.document = event->obj->ctx->document; e.eventdata = selection; e.intval = selection->count > 0 ? selection->rows[0] : -1; event->selection(&e, event->userdata);