diff -r 86d729874ff4 -r a4f4123ca12a ui/motif/container.c --- a/ui/motif/container.c Sat Jan 23 18:37:30 2016 +0100 +++ b/ui/motif/container.c Sat Jan 23 20:47:07 2016 +0100 @@ -370,7 +370,7 @@ } UIWIDGET ui_grid(UiObject *obj) { - return ui_grid_sp(obj, 0, 0); + return ui_grid_sp(obj, 0, 0, 0); } UIWIDGET ui_grid_sp(UiObject *obj, int margin, int columnspacing, int rowspacing) { @@ -725,6 +725,16 @@ ct->layout.fill = ui_bool2lb(fill); } +void ui_layout_hexpand(UiObject *obj, UiBool expand) { + UiContainer *ct = uic_get_current_container(obj); + ct->layout.hexpand = expand; +} + +void ui_layout_vexpand(UiObject *obj, UiBool expand) { + UiContainer *ct = uic_get_current_container(obj); + ct->layout.vexpand = expand; +} + void ui_newline(UiObject *obj) { UiContainer *ct = uic_get_current_container(obj); ct->layout.newline = TRUE;