130 |
130 |
131 UiContainerPrivate *ctn = ui_obj_container(obj); |
131 UiContainerPrivate *ctn = ui_obj_container(obj); |
132 UI_APPLY_LAYOUT(ctn->layout, args); |
132 UI_APPLY_LAYOUT(ctn->layout, args); |
133 |
133 |
134 Widget parent = ctn->prepare(ctn, xargs, &n); |
134 Widget parent = ctn->prepare(ctn, xargs, &n); |
|
135 XtSetArg(xargs[n], gridMargin, args.margin); n++; |
|
136 XtSetArg(xargs[n], gridColumnSpacing, args.columnspacing); n++; |
|
137 XtSetArg(xargs[n], gridRowSpacing, args.rowspacing); n++; |
135 Widget grid = XtCreateManagedWidget(args.name ? args.name : "gridcontainer", gridClass, parent, xargs, n); |
138 Widget grid = XtCreateManagedWidget(args.name ? args.name : "gridcontainer", gridClass, parent, xargs, n); |
136 ctn->add(ctn, grid); |
139 ctn->add(ctn, grid); |
137 |
140 |
138 UiContainerX *container = ui_grid_container(obj, grid); |
141 UiContainerX *container = ui_grid_container(obj, grid); |
139 uic_object_push_container(obj, container); |
142 uic_object_push_container(obj, container); |