From: H.G. Muller Date: Mon, 25 Jan 2010 07:56:35 +0000 (+0100) Subject: Fix width of filter field in XBoard GameList X-Git-Tag: master-20100206~23 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=fe8983ace70a1fe3f24e47e5d352a7d8edb95dd5 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. --- 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++;