summaryrefslogtreecommitdiffstats
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)
commit4e1d1269673ab48c37c3da8f289e756f26f6a0e5 (patch)
tree645d0695e3dc81812a990e00ed81a71d9855eba5
parent2897025c12803de5b514ed67645fda11f95bd9af (diff)
parent0ecec61e98d40fc515cde1d99e1604b9f419ad11 (diff)
downloadtk-4e1d1269673ab48c37c3da8f289e756f26f6a0e5.zip
tk-4e1d1269673ab48c37c3da8f289e756f26f6a0e5.tar.gz
tk-4e1d1269673ab48c37c3da8f289e756f26f6a0e5.tar.bz2
Fix [3613759] ttk::entry and symbolic index names.
-rw-r--r--ChangeLog5
-rw-r--r--generic/ttk/ttkScroll.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5558afc..002c0d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-05 Jan Nijtmans <nijtmans@users.sf.net>
+
+ * generic/ttk/ttkScroll.c: [Bug 3613759]: ttk::entry and symbolic
+ index names.
+
2013-05-19 Jan Nijtmans <nijtmans@users.sf.net>
* unix/tcl.m4: Fix for FreeBSD, and remove support for older
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 {