summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2013-06-05 07:37:52 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2013-06-05 07:37:52 (GMT)
commitaf55a52369b34edd1f5879005be3b54d7518b34e (patch)
tree46d71ad2f46b9c84d32badf37e6ccbe0217b65e7 /generic
parent0b4d6f5905c4635f31b4c99329cbf3e4ffc6247c (diff)
parent72bcf93ab9f4d06acd2c30ec4e7aa1757bf6641a (diff)
downloadtk-af55a52369b34edd1f5879005be3b54d7518b34e.zip
tk-af55a52369b34edd1f5879005be3b54d7518b34e.tar.gz
tk-af55a52369b34edd1f5879005be3b54d7518b34e.tar.bz2
Fix [3613759] ttk::entry and symbolic index names.
Diffstat (limited to 'generic')
-rw-r--r--generic/ttk/ttkScroll.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/generic/ttk/ttkScroll.c b/generic/ttk/ttkScroll.c
index b670540..5615eef 100644
--- a/generic/ttk/ttkScroll.c
+++ b/generic/ttk/ttkScroll.c
@@ -34,7 +34,7 @@
* TtkScrollbarUpdateRequired, which will invoke step (5) (@@@ Fix this)
*/
-#include <tk.h>
+#include <tkInt.h>
#include "ttkTheme.h"
#include "ttkWidget.h"
@@ -202,7 +202,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 {