--- a/ui/gtk/container.h Sun Feb 16 20:57:04 2025 +0100 +++ b/ui/gtk/container.h Sun Feb 16 21:15:17 2025 +0100 @@ -66,6 +66,7 @@ UiBool vexpand; UiBool hfill; UiBool vfill; + UiBool override_defaults; int width; int colspan; int rowspan; @@ -90,6 +91,10 @@ typedef struct UiGridContainer { UiContainer container; + UiBool def_hexpand; + UiBool def_vexpand; + UiBool def_hfill; + UiBool def_vfill; int x; int y; #ifdef UI_GTK2 @@ -171,7 +176,13 @@ void ui_box_container_add(UiContainer *ct, GtkWidget *widget, UiBool fill); GtkWidget* ui_create_grid_widget(int colspacing, int rowspacing); -UiContainer* ui_grid_container(UiObject *obj, GtkWidget *grid); +UiContainer* ui_grid_container( + UiObject *obj, + GtkWidget *grid, + UiBool def_hexpand, + UiBool def_vexpand, + UiBool def_hfill, + UiBool def_vfill); void ui_grid_container_add(UiContainer *ct, GtkWidget *widget, UiBool fill); UiContainer* ui_frame_container(UiObject *obj, GtkWidget *frame);