summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-05 07:37:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-05 07:37:52 (GMT)
commitd700d3e1145baef2131130e83c9e4ccbc9442af3 (patch)
tree645d0695e3dc81812a990e00ed81a71d9855eba5 /generic/ttk
parent80055804f8252e22603084173fc77dbccbedff27 (diff)
parent4d642564803e52d1b101ccea0ac68e599e547113 (diff)
downloadtk-d700d3e1145baef2131130e83c9e4ccbc9442af3.zip
tk-d700d3e1145baef2131130e83c9e4ccbc9442af3.tar.gz
tk-d700d3e1145baef2131130e83c9e4ccbc9442af3.tar.bz2
Fix [3613759] ttk::entry and symbolic index names.
Diffstat (limited to 'generic/ttk')
-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 {