From 093585a0b8d3476d956cdf8617d2028c387dc81d Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 9 Feb 2010 14:34:33 +0100 Subject: [PATCH] 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. --- xoptions.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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; } -- 1.7.0.4