X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xengineoutput.c;h=11b06950a48a811d75e16c3f29528cd878b78508;hb=08a38fdd71f1fae28fb213d4c5f6fb0834967412;hp=57a32d360d3dea5bfe65fea66dafa546a297e8ea;hpb=272e35c7f6874eae7f6f5487ad427a57212b9eca;p=xboard.git diff --git a/xengineoutput.c b/xengineoutput.c index 57a32d3..11b0695 100644 --- a/xengineoutput.c +++ b/xengineoutput.c @@ -167,6 +167,13 @@ void DoSetWindowText(int which, int field, char *s_label) XtSetValues(outputField[which][field], &arg, 1); } +void SetEngineOutputTitle(char *title) +{ + Arg arg; + XtSetArg(arg, XtNtitle, (XtArgVal) title); + XtSetValues(engineOutputShell, &arg, 1); +} + void InsertIntoMemo( int which, char * text, int where ) { XawTextBlock t; @@ -198,11 +205,12 @@ void SetIcon( int which, int field, int nIcon ) void DoClearMemo(int which) { - Widget edit; - - edit = XtNameToWidget(engineOutputShell, which ? "*form2.text" : "*form.text"); - XtCallActionProc(edit, "select-all", NULL, NULL, 0); - XtCallActionProc(edit, "kill-selection", NULL, NULL, 0); + Widget edit = XtNameToWidget(engineOutputShell, which ? "*form2.text" : "*form.text"); + Arg arg; +// XtCallActionProc(edit, "select-all", NULL, NULL, 0); +// XtCallActionProc(edit, "kill-selection", NULL, NULL, 0); + XtSetArg(arg, XtNstring, ""); // clear without disturbing selection! + XtSetValues(edit, &arg, 1); } // cloned from CopyPositionProc. Abuse selected_fen_position to hold selection