--- a/ui/motif/container.h Wed Feb 26 21:19:54 2025 +0100 +++ b/ui/motif/container.h Wed Feb 26 21:33:57 2025 +0100 @@ -44,6 +44,7 @@ layout.vexpand = args.vexpand; \ layout.hfill = args.hfill; \ layout.vfill = args.vfill; \ + layout.override_defaults = args.override_defaults; \ layout.colspan = args.colspan; \ layout.rowspan = args.rowspan @@ -71,6 +72,7 @@ UiBool vexpand; UiBool hfill; UiBool vfill; + UiBool override_defaults; int width; int colspan; int rowspan; @@ -102,6 +104,10 @@ UiContainerPrivate container; Dimension x; Dimension y; + UiBool def_hexpand; + UiBool def_vexpand; + UiBool def_hfill; + UiBool def_vfill; } UiGridContainer; typedef struct UiTab { @@ -153,7 +159,13 @@ void ui_box_container_add(UiContainerPrivate *ctn, Widget widget); -UiContainerX* ui_grid_container(UiObject *obj, Widget grid); +UiContainerX* ui_grid_container( + UiObject *obj, + Widget grid, + UiBool def_hexpand, + UiBool def_vexpand, + UiBool def_hfill, + UiBool def_vfill); Widget ui_grid_container_prepare(UiContainerPrivate *ctn, Arg *args, int *n); void ui_grid_container_add(UiContainerPrivate *ctn, Widget widget);