ui/motif/list.c

changeset 63
46a42f0c4f93
parent 60
7cd1b8890302
child 77
bc0ed99e49c7
equal deleted inserted replaced
62:70d2aee84432 63:46a42f0c4f93
58 n++; 58 n++;
59 59
60 UiContainer *ct = uic_get_current_container(obj); 60 UiContainer *ct = uic_get_current_container(obj);
61 Widget parent = ct->prepare(ct, args, &n, TRUE); 61 Widget parent = ct->prepare(ct, args, &n, TRUE);
62 Widget widget = XmCreateScrolledList(parent, "listview", args, n); 62 Widget widget = XmCreateScrolledList(parent, "listview", args, n);
63 ct->add(ct, widget); 63 ct->add(ct, XtParent(widget));
64 XtManageChild(widget); 64 XtManageChild(widget);
65 65
66 UiListView *listview = ucx_mempool_malloc(obj->ctx->mempool, sizeof(UiListView)); 66 UiListView *listview = ucx_mempool_malloc(obj->ctx->mempool, sizeof(UiListView));
67 listview->widget = widget; 67 listview->widget = widget;
68 listview->list = list; 68 listview->list = list;

mercurial