summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-04 12:47:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-04 12:47:52 (GMT)
commit0ecec61e98d40fc515cde1d99e1604b9f419ad11 (patch)
treeea85747b2b6c45fb8858f174e03e2d4e9da8c1b4 /generic
parent1248bb70a754303d9f7f6ac70dac7a04bbd879e4 (diff)
downloadtk-0ecec61e98d40fc515cde1d99e1604b9f419ad11.zip
tk-0ecec61e98d40fc515cde1d99e1604b9f419ad11.tar.gz
tk-0ecec61e98d40fc515cde1d99e1604b9f419ad11.tar.bz2
Suggested fix for [3613759]: ttk::entry and symbolic index namesbug_3613759
Diffstat (limited to 'generic')
-rw-r--r--generic/ttk/ttkScroll.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/ttk/ttkScroll.c b/generic/ttk/ttkScroll.c
index 7ac4f14..6e8c2e3 100644
--- a/generic/ttk/ttkScroll.c
+++ b/generic/ttk/ttkScroll.c
@@ -37,6 +37,7 @@
#include <tk.h>
#include "ttkTheme.h"
#include "ttkWidget.h"
+#include <string.h>
/* Private data:
*/
@@ -202,7 +203,10 @@ int TtkScrollviewCommand(
Tcl_SetObjResult(interp, Tcl_NewListObj(2, result));
return TCL_OK;
} else if (objc == 3) {
- if (Tcl_GetIntFromObj(interp, objv[2], &newFirst) != TCL_OK) {
+ const char *string = Tcl_GetString(objv[2]);
+ if (strcmp(string, "end") == 0) {
+ newFirst = s->total;
+ } else if (Tcl_GetIntFromObj(interp, objv[2], &newFirst) != TCL_OK) {
return TCL_ERROR;
}
} else {