summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkEntry.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-05 13:03:22 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-05 13:03:22 (GMT)
commit060bda7e185c8d85adc2791b6cc059e007db799b (patch)
tree92859838396d648063a8b2de87532b940528d730 /generic/ttk/ttkEntry.c
parent01d203705e3d97a96e794e0b54e79508e285c3c2 (diff)
parentd9a44369370d90d1b8dfd0decd866879a62715f6 (diff)
downloadtk-060bda7e185c8d85adc2791b6cc059e007db799b.zip
tk-060bda7e185c8d85adc2791b6cc059e007db799b.tar.gz
tk-060bda7e185c8d85adc2791b6cc059e007db799b.tar.bz2
Fix [2100430]: ttk::entry widget index must be integer
Diffstat (limited to 'generic/ttk/ttkEntry.c')
-rw-r--r--generic/ttk/ttkEntry.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/generic/ttk/ttkEntry.c b/generic/ttk/ttkEntry.c
index 62a2720..f395649 100644
--- a/generic/ttk/ttkEntry.c
+++ b/generic/ttk/ttkEntry.c
@@ -1644,6 +1644,14 @@ static int EntryXViewCommand(
void *recordPtr, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
{
Entry *entryPtr = recordPtr;
+ if (objc == 3) {
+ int newFirst;
+ if (EntryIndex(interp, entryPtr, objv[2], &newFirst) != TCL_OK) {
+ return TCL_ERROR;
+ }
+ TtkScrollTo(entryPtr->entry.xscrollHandle, newFirst);
+ return TCL_OK;
+ }
return TtkScrollviewCommand(interp, objc, objv, entryPtr->entry.xscrollHandle);
}