Improve behaviour of resizing the value chooser widget
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 16 Jan 2012 19:06:43 +0000 (20:06 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 16 Jan 2012 19:06:43 +0000 (20:06 +0100)
src/ui/gui/psppire-val-chooser.c

index 59225e274484828b8b176d73aaabe1e296c0c351..55edf906cc922c6f209df7f8247e97dfa4a23a0d 100644 (file)
@@ -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)