projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
37948ed
)
Fix width of filter field in XBoard GameList
author
H.G. Muller
<h.g.muller@hccnet.nl>
Mon, 25 Jan 2010 07:56:35 +0000 (08:56 +0100)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Sat, 30 Jan 2010 08:57:51 +0000 (09:57 +0100)
An empirical dependence of the width of this text edit on the square
size now makes for an acceptable layout at any board size.
xgamelist.c
patch
|
blob
|
history
diff --git
a/xgamelist.c
b/xgamelist.c
index
35194ac
..
f09bdd7
100644
(file)
--- a/
xgamelist.c
+++ b/
xgamelist.c
@@
-251,7
+251,7
@@
GameListCreate(name, callback, client_data)
XtSetArg(args[j], XtNbottom, XtChainBottom); j++;
XtSetArg(args[j], XtNleft, XtChainLeft); j++;
XtSetArg(args[j], XtNright, XtChainRight); j++;
- XtSetArg(args[j], XtNwidth, 173); j++;
+ XtSetArg(args[j], XtNwidth, fw_width - 225 - squareSize); j++;
XtSetArg(args[j], XtNstring, filterString); j++;
XtSetArg(args[j], XtNdisplayCaret, False); j++;
XtSetArg(args[j], XtNresizable, True); j++;