ui/motif/list.c

changeset 60
7cd1b8890302
parent 52
25e5390cce41
child 63
46a42f0c4f93
--- a/ui/motif/list.c	Thu Jan 01 11:23:43 2015 +0100
+++ b/ui/motif/list.c	Thu Jan 01 14:13:37 2015 +0100
@@ -58,8 +58,9 @@
     n++;
     
     UiContainer *ct = uic_get_current_container(obj);
-    Widget parent = ct->add(ct, args, &n);
-    Widget widget= XmCreateScrolledList(parent, "listview", args, n);
+    Widget parent = ct->prepare(ct, args, &n, TRUE);
+    Widget widget = XmCreateScrolledList(parent, "listview", args, n);
+    ct->add(ct, widget);
     XtManageChild(widget);
     
     UiListView *listview = ucx_mempool_malloc(obj->ctx->mempool, sizeof(UiListView));

mercurial