X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xaw%2Fxboard.c;h=5bf3b0cbdab34d20f94532e4b2fbeac6f57e1f15;hb=b766f10fe10fc786b5793a010d777bacc4349820;hp=71416d4fccc0b81c61c4ec3af7a23dbe9cd6146c;hpb=053dc1f79f78ff5d5d4d0f625f68a7d8076a30a0;p=xboard.git diff --git a/xaw/xboard.c b/xaw/xboard.c index 71416d4..5bf3b0c 100644 --- a/xaw/xboard.c +++ b/xaw/xboard.c @@ -1781,7 +1781,7 @@ HandlePV (Widget w, XEvent * event, String * params, Cardinal * nParams) MovePV(event->xmotion.x, event->xmotion.y, lineGap + BOARD_HEIGHT * (squareSize + lineGap)); } -static int savedIndex; /* gross that this is global */ +extern int savedIndex; /* gross that this is global */ void CommentClick (Widget w, XEvent * event, String * params, Cardinal * nParams) @@ -1798,27 +1798,6 @@ CommentClick (Widget w, XEvent * event, String * params, Cardinal * nParams) LoadVariation( index, val ); // [HGM] also does the actual moving to it, now } -void -EditCommentPopUp (int index, char *title, char *text) -{ - savedIndex = index; - if (text == NULL) text = ""; - NewCommentPopup(title, text, index); -} - -void -CommentPopUp (char *title, char *text) -{ - savedIndex = currentMove; // [HGM] vari - NewCommentPopup(title, text, currentMove); -} - -void -CommentPopDown () -{ - PopDown(CommentDlg); -} - /* Disable all user input other than deleting the window */ static int frozen = 0;