extern GtkListStore *LIST_MoveHistory;
String dots=" ... ";
+Position gameHistoryX, gameHistoryY;
+Dimension gameHistoryW, gameHistoryH;
void
HistoryPopDown(object, user_data)
GtkObject *object;
gpointer user_data;
{
+ /* hides the history window */
+
gtk_widget_hide (GUI_History);
return;
}
strcpy(moveblack,"");
};
}
- /* check if ther is a white move left */
+
+ /* check if there is a white move left */
if(movewhite[0])
{
i++;
2, moveblack,
-1);
};
+
+ //TODO
+ // EvalGraphSet( first, last, current, pvInfoList ); // piggy-backed
return;
}
<Key>Right: ForwardProc() \n";
return;
+// if(wpMoveHistory.width > 0) {
+// gameHistoryW = wpMoveHistory.width;
+// gameHistoryH = wpMoveHistory.height;
+// gameHistoryX = wpMoveHistory.x;
+// gameHistoryY = wpMoveHistory.y;
+// }
+//
+// // [HGM] restore old position
+// if(gameHistoryW > 0) {
+// j = 0;
+// XtSetArg(args[j], XtNx, gameHistoryX); j++;
+// XtSetArg(args[j], XtNy, gameHistoryY); j++;
+// XtSetArg(args[j], XtNwidth, gameHistoryW); j++;
+// XtSetArg(args[j], XtNheight, gameHistoryH); j++;
+// XtSetValues(hist->sh, args, j);
+// }
}
void
HistoryPopUp()
{
- // if(!hist) HistoryCreate();
+ /* show history window */
gtk_widget_show (GUI_History);
-
return;
}
return;
}
+Boolean
+MoveHistoryIsUp()
+{
+ /* return status of history window */
+
+ return gtk_widget_get_visible (GUI_History);
+}