X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xhistory.c;h=76e323951d7c6459b8cc642719ee017d55fdb532;hb=c8a5fc25c8c93671385ab3662214ce66c33ebf8d;hp=008d4ca8903b4810ecef2f5324e4ca8570928d6b;hpb=ed47244d151ccf276b9e233b4415e00aa5d3d29d;p=xboard.git diff --git a/xhistory.c b/xhistory.c index 008d4ca..76e3239 100644 --- a/xhistory.c +++ b/xhistory.c @@ -224,6 +224,7 @@ HistoryFill() void HistorySet(char movelist[][2*MOVE_LEN],int first,int last,int current){ int i,b,m; + Widget scroll; if(hist){ if(last >= hist->aNr) HistoryAlloc(last+_LL_); for(i=0;imvb, current/2+1); else XawListUnhighlight(hist->mvb); } + if(scroll = XtNameToWidget(hist->sh, "*form.viewport.vertical")) { // [HGM] always scroll to bottom + static char *params[3] = { "", "Forward", "FullLength" }; + static XEvent event; + XtCallActionProc(scroll, "StartScroll", &event, params+1, 1); + XtCallActionProc(scroll, "NotifyScroll", &event, params+2, 1); + XtCallActionProc(scroll, "EndScroll", &event, params, 0); + } } EvalGraphSet( first, last, current, pvInfoList ); // piggy-backed }