From: John Darrington Date: Mon, 16 Jan 2012 19:06:43 +0000 (+0100) Subject: Improve behaviour of resizing the value chooser widget X-Git-Tag: v0.7.9~28 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=796bca518fa1c3d5b6eec71cd6415258919cac10;p=pspp-builds.git Improve behaviour of resizing the value chooser widget --- diff --git a/src/ui/gui/psppire-val-chooser.c b/src/ui/gui/psppire-val-chooser.c index 59225e27..55edf906 100644 --- a/src/ui/gui/psppire-val-chooser.c +++ b/src/ui/gui/psppire-val-chooser.c @@ -368,12 +368,17 @@ psppire_val_chooser_init (PsppireValChooser *vr) group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (vr->rw[i].rb)); - gtk_table_attach_defaults (GTK_TABLE (table), GTK_WIDGET (vr->rw[i].rb), 0, 1, - row, row + 1); - - - gtk_table_attach_defaults (GTK_TABLE (table), GTK_WIDGET (vr->rw[i].label), 1, 2, - row, row + 1); + /* Attach the buttons */ + gtk_table_attach (GTK_TABLE (table), GTK_WIDGET (vr->rw[i].rb), + 0, 1, row, row + 1, + 0, GTK_EXPAND | GTK_FILL, + 0, 0); + + /* Attach the labels */ + gtk_table_attach (GTK_TABLE (table), GTK_WIDGET (vr->rw[i].label), + 1, 2, row, row + 1, + GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, + 0, 0); ++row; if (l->fill)