X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xhistory.c;h=4d0afe8ccf0b81812b0df742eafe2ff485f09b7e;hb=06b933aec31c7eafe287731d4ec8e3ba9de6ec81;hp=bf5a26dc6e80da59cb344525e0881e6e755f78ae;hpb=8a0368b7169965529802961fbd16fdfacf3c639d;p=xboard.git diff --git a/xhistory.c b/xhistory.c index bf5a26d..4d0afe8 100644 --- a/xhistory.c +++ b/xhistory.c @@ -25,26 +25,6 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - #include "common.h" #include "backend.h" #include "xhistory.h" @@ -70,13 +50,16 @@ extern Option historyOptions[]; void HighlightMove (int from, int to, Boolean highlight) { +#ifdef TODO_GTK if(highlight) XawTextSetSelection( historyOptions[0].handle, from, to ); // for lack of a better method, use selection for highighting +#endif } void ScrollToCurrent (int caretPos) { +#ifdef TODO_GTK Arg args[10]; char *s; int len; @@ -92,6 +75,7 @@ ScrollToCurrent (int caretPos) XtSetArg(args[0], XtNinsertPosition, caretPos); // this triggers scrolling in Xaw XtSetArg(args[1], XtNdisplayCaret, False); XtSetValues(historyOptions[0].handle, args, 2); +#endif } @@ -101,6 +85,7 @@ char historyTranslations[] = ": select-start() \n \ : extend-end() SelectMove() \n"; +#ifdef TODO_GTK void SelectMove (Widget w, XEvent * event, String * params, Cardinal * nParams) { @@ -109,4 +94,5 @@ SelectMove (Widget w, XEvent * event, String * params, Cardinal * nParams) XawTextGetSelectionPos(w, &index, &dummy); FindMoveByCharIndex( index ); // [HGM] also does the actual moving to it, now } +#endif