ui/motif/list.c

changeset 63
46a42f0c4f93
parent 60
7cd1b8890302
child 77
bc0ed99e49c7
--- a/ui/motif/list.c	Sun Jan 04 22:12:07 2015 +0100
+++ b/ui/motif/list.c	Mon Jan 05 11:49:46 2015 +0100
@@ -60,7 +60,7 @@
     UiContainer *ct = uic_get_current_container(obj);
     Widget parent = ct->prepare(ct, args, &n, TRUE);
     Widget widget = XmCreateScrolledList(parent, "listview", args, n);
-    ct->add(ct, widget);
+    ct->add(ct, XtParent(widget));
     XtManageChild(widget);
     
     UiListView *listview = ucx_mempool_malloc(obj->ctx->mempool, sizeof(UiListView));

mercurial