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 01:59:43 +00:00
1 parent 55daf32bde
commit b96e545f20
1 file changed
+5
+5
View File
@@ -1943,6 +1943,11 @@ static void add_row(int row, const char* label, GtkWidget* control) {
GtkWidget* lab = gtk_label_new(label);
gtk_widget_set_halign(lab, GTK_ALIGN_START);
gtk_grid_attach(GTK_GRID(g_props_grid), 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.
gtk_widget_set_hexpand(control, TRUE);
gtk_grid_attach(GTK_GRID(g_props_grid), control, 1, row, 1, 1);
}