X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xengineoutput.c;h=1c86de382be477c09b2f241477615ad0493d2ab7;hb=b602e7faa8f3973c5b3c4ae00108eaea982ea196;hp=bdf4928426e0b4b7e2f131e9067fa44735936ac4;hpb=da51e2493eb3cfdf87a21946857be26d90aa7480;p=xboard.git diff --git a/xengineoutput.c b/xengineoutput.c index bdf4928..1c86de3 100644 --- a/xengineoutput.c +++ b/xengineoutput.c @@ -163,38 +163,6 @@ Shift: select-start() extend-end() SelectPV(1) \n \ Any: select-start() extend-end() SelectPV(0) \n \ : StopPV() \n"; -void -SelectPV (Option *opt, int x, int y) -{ // [HGM] pv: translate click to PV line, and load it for display - int start, end, index; - char *val; - int currentPV = (opt->handle != memoWidget); -#ifdef TODO_GTK - XawTextGetSelectionPos(w, &index, &dummy); - XtSetArg(arg, XtNstring, &val); - XtGetValues(w, &arg, 1); -#endif - if(LoadMultiPV(x, y, val, index, &start, &end, currentPV)) { -#ifdef TODO_GTK - XawTextSetSelection( w, start, end ); -#endif - highTextStart[currentPV] = start; highTextEnd[currentPV] = end; - } -} - -void -StopPV (Option *opt) -{ // [HGM] pv: on right-button release, stop displaying PV -#ifdef TODO_GTK - XawTextUnsetSelection( opt->handle ); -#endif - highTextStart[currentPV] = highTextEnd[currentPV] = 0; - UnLoadPV(); -#ifdef TODO_GTK - XtCallActionProc(opt->handle, "beginning-of-file", event, NULL, 0); -#endif -} - //------------------------------- pane switching ----------------------------------- void