From: H.G. Muller Date: Tue, 9 Feb 2010 13:34:33 +0000 (+0100) Subject: Start insertion point at end of text edits in XB dialogs X-Git-Tag: master-20100221~29 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=093585a0b8d3476d956cdf8617d2028c387dc81d;p=xboard.git Start insertion point at end of text edits in XB dialogs The function SetFocus now uses XawTextSetInsertionPoint to position the end of the string it aready contains, rather than at the beginning. --- diff --git a/xoptions.c b/xoptions.c index 558da58..c75263f 100644 --- a/xoptions.c +++ b/xoptions.c @@ -105,6 +105,7 @@ void SetFocus(Widget w, XtPointer data, XEvent *event, Boolean *b) } XtSetArg(args, XtNdisplayCaret, True); XtSetValues(w, &args, 1); + XawTextSetInsertionPoint(w, 9999); // position cursor at end XtSetKeyboardFocus((Widget) data, w); previous = w; }