From fe8983ace70a1fe3f24e47e5d352a7d8edb95dd5 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 25 Jan 2010 08:56:35 +0100 Subject: [PATCH] Fix width of filter field in XBoard GameList 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 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xgamelist.c b/xgamelist.c index 35194ac..f09bdd7 100644 --- 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++; -- 1.7.0.4