Make Inspector property rows expand to fill the panel width

The property editors in the grid sat at their natural width while
the Bulk parameter fields below filled the panel. Set hexpand on the
control in add_row so the control column takes the extra width, like
the Bulk fields. Entries, spins, combos and the entry+Pick boxes all
stretch; the label column stays narrow.
This commit is contained in:
cnmcdee committed 2026-12-01 02:03:07 +00:00
1 parent 6a7c4c7197
commit 29751be9c8
1 file changed
+5
@@ -20,6 +20,11 @@ fn add_row(grid: &gtk::Grid, row: i32, label: &str, control: &gtk::Widget) {
let lab = gtk::Label::new(Some(label));
lab.set_halign(gtk::Align::Start);
grid.attach(&lab, 0, row, 1, 1);
// The control column expands to fill the panel width (like the
// Bulk parameter fields below the grid): without hexpand the
// controls sat at their natural width and the rest of the panel
// was wasted space.
control.set_hexpand(true);
grid.attach(control, 1, row, 1, 1);
}