X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xengineoutput.c;h=4d94616369146c7d6f5c9a93da720e043bbcaaf0;hb=0aa6203676d6c3e1bfb8fb6a17d801ebecf4c317;hp=bdf4928426e0b4b7e2f131e9067fa44735936ac4;hpb=cbb23e5f23cee542f8099c7f80fd07df8d9f0a08;p=xboard.git diff --git a/xengineoutput.c b/xengineoutput.c index bdf4928..4d94616 100644 --- a/xengineoutput.c +++ b/xengineoutput.c @@ -148,9 +148,6 @@ InsertIntoMemo (int which, char * text, int where) if(where < highTextStart[which]) { // [HGM] multiPVdisplay: move highlighting int len = strlen(text); highTextStart[which] += len; highTextEnd[which] += len; -#ifdef TODO_GTK - XawTextSetSelection( edit, highTextStart[which], highTextEnd[which] ); -#endif } } @@ -163,38 +160,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