X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xhistory.c;h=fc5a88dcaec64627ce0580423d35c5823ab4c9e3;hb=1905bc8511d3e2bed714c77c82dba7847cf05c30;hp=eb865385ccee71f6bf10739241a3d246ca84c344;hpb=c28f9557f19deb9621b179d3c6ccbdf0458bd304;p=xboard.git diff --git a/xhistory.c b/xhistory.c index eb86538..fc5a88d 100644 --- a/xhistory.c +++ b/xhistory.c @@ -1,7 +1,7 @@ /* * xhistory.c -- Move list window, part of X front end for XBoard * - * Copyright 2000, 2009, 2010 Free Software Foundation, Inc. + * Copyright 2000, 2009, 2010, 2011 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -123,7 +123,7 @@ HistoryPopDown(w, client_data, call_data) } j=0; XtSetArg(args[j], XtNleftBitmap, None); j++; - XtSetValues(XtNameToWidget(menuBarWidget, "menuMode.Show Move History"), + XtSetValues(XtNameToWidget(menuBarWidget, "menuView.Show Move History"), args, j); } @@ -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 } @@ -442,7 +450,7 @@ HistoryPopUp() j=0; XtSetArg(args[j], XtNleftBitmap, xMarkPixmap); j++; - XtSetValues(XtNameToWidget(menuBarWidget, "menuMode.Show Move History"), + XtSetValues(XtNameToWidget(menuBarWidget, "menuView.Show Move History"), args, j); hist->Up=True; }