X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xengineoutput.c;h=4d94616369146c7d6f5c9a93da720e043bbcaaf0;hb=0aa6203676d6c3e1bfb8fb6a17d801ebecf4c317;hp=f83dcf07916bf5ab4ff9845b8d1bdad785016ba5;hpb=6251a33fbe83055dcb12334edc07e1d99f4f81f8;p=xboard.git diff --git a/xengineoutput.c b/xengineoutput.c index f83dcf0..4d94616 100644 --- a/xengineoutput.c +++ b/xengineoutput.c @@ -83,6 +83,7 @@ static int currentPV, highTextStart[2], highTextEnd[2]; static Pixmap icons[8]; // [HGM] this front-end array translates back-end icon indicator to handle static Widget memoWidget; #endif +static void *memoWidget; #ifdef TODO_GTK static void @@ -147,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 } } @@ -162,40 +160,6 @@ Shift: select-start() extend-end() SelectPV(1) \n \ Any: select-start() extend-end() SelectPV(0) \n \ : StopPV() \n"; -#ifdef TODO_GTK -void -SelectPV (Widget w, XEvent * event, String * params, Cardinal * nParams) -{ // [HGM] pv: translate click to PV line, and load it for display - String val; - int start, end; - XawTextPosition index, dummy; - int x, y; - Arg arg; - - x = event->xmotion.x; y = event->xmotion.y; - currentPV = (w != memoWidget); - XawTextGetSelectionPos(w, &index, &dummy); - XtSetArg(arg, XtNstring, &val); - XtGetValues(w, &arg, 1); - shiftKey = strcmp(params[0], "0"); - if(LoadMultiPV(x, y, val, index, &start, &end, currentPV)) { - XawTextSetSelection( w, start, end ); - highTextStart[currentPV] = start; highTextEnd[currentPV] = end; - } -} -#endif - -#ifdef TODO_GTK -void -StopPV (Widget w, XEvent * event, String * params, Cardinal * nParams) -{ // [HGM] pv: on right-button release, stop displaying PV - XawTextUnsetSelection( w ); - highTextStart[currentPV] = highTextEnd[currentPV] = 0; - UnLoadPV(); - XtCallActionProc(w, "beginning-of-file", event, NULL, 0); -} -#endif - //------------------------------- pane switching ----------------------------------- void