projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
21fe43e
)
Start insertion point at end of text edits in XB dialogs
author
H.G. Muller
<h.g.muller@hccnet.nl>
Tue, 9 Feb 2010 13:34:33 +0000 (14:34 +0100)
committer
Arun Persaud
<arun@nubati.net>
Wed, 10 Feb 2010 04:23:02 +0000 (20:23 -0800)
The function SetFocus now uses XawTextSetInsertionPoint to position the
end of the string it aready contains, rather than at the beginning.
xoptions.c
patch
|
blob
|
history
diff --git
a/xoptions.c
b/xoptions.c
index
8a7e546
..
73dda5f
100644
(file)
--- a/
xoptions.c
+++ b/
xoptions.c
@@
-104,6
+104,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;
}