aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2009-06-21 13:34:50 +0000
committerSimon Tatham <anakin@pobox.com>2009-06-21 13:34:50 +0000
commitec2964253977446f0ff98c9d6277eec94111fbd0 (patch)
treefe0aece6756b2d6df36c0f75c27b44726823d6ab
parent767ec240093fd8f9528bd8636e93c49708bd7a35 (diff)
downloadpuzzles-ec2964253977446f0ff98c9d6277eec94111fbd0.zip
puzzles-ec2964253977446f0ff98c9d6277eec94111fbd0.tar.gz
puzzles-ec2964253977446f0ff98c9d6277eec94111fbd0.tar.bz2
puzzles-ec2964253977446f0ff98c9d6277eec94111fbd0.tar.xz
Patch from Mark Wooding: stop setting GTK_EXPAND for the x-direction
on labels in tables. The effect is that if you resize (e.g.) Solo's configuration panel, the labels to the left of the various input boxes will remain just big enough to fit their text in, and all the extra space will be taken up by the useful part, i.e. the input boxes themselves. Previously the labels and input boxes would expand in a 1:1 ratio, causing lots of space to the right of the label text that wasn't used for anything. [originally from svn r8599]
-rw-r--r--gtk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk.c b/gtk.c
index 5761e8d..97b426e 100644
--- a/gtk.c
+++ b/gtk.c
@@ -969,7 +969,7 @@ static int get_config(frontend *fe, int which)
w = gtk_label_new(i->name);
gtk_misc_set_alignment(GTK_MISC(w), 0.0, 0.5);
gtk_table_attach(GTK_TABLE(table), w, 0, 1, y, y+1,
- GTK_EXPAND | GTK_SHRINK | GTK_FILL,
+ GTK_SHRINK | GTK_FILL,
GTK_EXPAND | GTK_SHRINK | GTK_FILL,
3, 3);
gtk_widget_show(w);
@@ -1011,8 +1011,8 @@ static int get_config(frontend *fe, int which)
w = gtk_label_new(i->name);
gtk_misc_set_alignment(GTK_MISC(w), 0.0, 0.5);
gtk_table_attach(GTK_TABLE(table), w, 0, 1, y, y+1,
- GTK_EXPAND | GTK_SHRINK | GTK_FILL,
- GTK_EXPAND | GTK_SHRINK | GTK_FILL,
+ GTK_SHRINK | GTK_FILL,
+ GTK_EXPAND | GTK_SHRINK | GTK_FILL ,
3, 3);
gtk_widget_show(w);