int SelectMove (Option *opt, int n, int x, int y, char *text, int index) { if(n != 3 && n != 1) return FALSE; // only on button-1 and 3 press FindMoveByCharIndex( index ); // [HGM] also does the actual moving to it, now return (n == 3); // suppress context menu for button 3, but allow selection with button 1 }
void SelectMoveX (Widget w, XEvent * event, String * params, Cardinal * nParams) { XawTextPosition index, dummy; XawTextGetSelectionPos(w, &index, &dummy); FindMoveByCharIndex( index ); // [HGM] also does the actual moving to it, now }