struct History *hist=0;
String dots=" ... ";
Position gameHistoryX, gameHistoryY;
+Dimension gameHistoryW;
void
HistoryPopDown(w, client_data, call_data)
Arg args[16];
int j;
if(hist) {
- // [HGM] remember old position
- j = 0;
- XtSetArg(args[j], XtNx, &gameHistoryX); j++;
- XtSetArg(args[j], XtNy, &gameHistoryY); j++;
- XtGetValues(hist->sh, args, j);
-
XtPopdown(hist->sh);
hist->Up=False;
}
strcpy(hist->black[i],"");
}
+ // [HGM] restore old position
+ j = 0;
+ XtSetArg(args[j], XtNx, &gameHistoryX); j++;
+ XtSetArg(args[j], XtNy, &gameHistoryY); j++;
+ XtSetArg(args[j], XtNwidth, &gameHistoryW); j++;
+ XtGetValues(shellWidget, args, j);
+ j = 0;
+ XtSetArg(args[j], XtNx, gameHistoryX + gameHistoryW); j++;
+ XtSetArg(args[j], XtNy, gameHistoryY); j++;
+ XtSetValues(hist->sh, args, j);
+ XtRealizeWidget(hist->sh);
+
return hist->sh;
}
XtPopup(hist->sh, XtGrabNone);
- // [HGM] restore old position
- j = 0;
- XtSetArg(args[j], XtNx, gameHistoryX); j++;
- XtSetArg(args[j], XtNy, gameHistoryY); j++;
- XtSetValues(hist->sh, args, j);
-
j=0;
XtSetArg(args[j], XtNleftBitmap, xMarkPixmap); j++;
XtSetValues(XtNameToWidget(menuBarWidget, "menuMode.Show Move History"),