summaryrefslogtreecommitdiffstats
path: root/generic/tkEntry.c
diff options
context:
space:
mode:
authorjenglish@flightlab.com <jenglish>2013-02-27 14:41:41 (GMT)
committerjenglish@flightlab.com <jenglish>2013-02-27 14:41:41 (GMT)
commit61f304d32518a0b676e01d09d4aad633dc88738f (patch)
treee4c799bd7715375437a5ca9333297d2092c73630 /generic/tkEntry.c
parentc53b6ab4048d3b4f5d9c44c0ef1ae8d82aaf5f00 (diff)
downloadtk-61f304d32518a0b676e01d09d4aad633dc88738f.zip
tk-61f304d32518a0b676e01d09d4aad633dc88738f.tar.gz
tk-61f304d32518a0b676e01d09d4aad633dc88738f.tar.bz2
Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper
exists and is used.
Diffstat (limited to 'generic/tkEntry.c')
-rw-r--r--generic/tkEntry.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c
index 7ee6ad2..eb94cbd 100644
--- a/generic/tkEntry.c
+++ b/generic/tkEntry.c
@@ -602,8 +602,8 @@ EntryWidgetObjCmd(
* valid command names.
*/
- result = Tcl_GetIndexFromObjStruct(interp, objv[1], entryCmdNames,
- sizeof(char *), "option", 0, &cmdIndex);
+ result = Tcl_GetIndexFromObj(interp, objv[1], entryCmdNames, "option", 0,
+ &cmdIndex);
if (result != TCL_OK) {
return result;
}
@@ -782,8 +782,8 @@ EntryWidgetObjCmd(
* "selCmdNames" defined above.
*/
- result = Tcl_GetIndexFromObjStruct(interp, objv[2], selCmdNames,
- sizeof(char *), "selection option", 0, &selIndex);
+ result = Tcl_GetIndexFromObj(interp, objv[2], selCmdNames,
+ "selection option", 0, &selIndex);
if (result != TCL_OK) {
goto error;
}
@@ -3656,8 +3656,8 @@ SpinboxWidgetObjCmd(
* valid command names.
*/
- result = Tcl_GetIndexFromObjStruct(interp, objv[1], sbCmdNames,
- sizeof(char *), "option", 0, &cmdIndex);
+ result = Tcl_GetIndexFromObj(interp, objv[1], sbCmdNames,
+ "option", 0, &cmdIndex);
if (result != TCL_OK) {
return result;
}
@@ -3817,8 +3817,8 @@ SpinboxWidgetObjCmd(
Tcl_WrongNumArgs(interp, 2, objv, "elemName");
goto error;
}
- result = Tcl_GetIndexFromObjStruct(interp, objv[2], selElementNames,
- sizeof(char *), "element", 0, &cmdIndex);
+ result = Tcl_GetIndexFromObj(interp, objv[2],
+ selElementNames, "element", 0, &cmdIndex);
if (result != TCL_OK) {
goto error;
}
@@ -3873,8 +3873,8 @@ SpinboxWidgetObjCmd(
* "sbSelCmdNames" defined above.
*/
- result = Tcl_GetIndexFromObjStruct(interp, objv[2], sbSelCmdNames,
- sizeof(char *), "selection option", 0, &selIndex);
+ result = Tcl_GetIndexFromObj(interp, objv[2], sbSelCmdNames,
+ "selection option", 0, &selIndex);
if (result != TCL_OK) {
goto error;
}
@@ -4003,8 +4003,8 @@ SpinboxWidgetObjCmd(
} else {
int lastElement = sbPtr->selElement;
- result = Tcl_GetIndexFromObjStruct(interp, objv[3], selElementNames,
- sizeof(char *), "selection element", 0, &(sbPtr->selElement));
+ result = Tcl_GetIndexFromObj(interp, objv[3], selElementNames,
+ "selection element", 0, &(sbPtr->selElement));
if (result != TCL_OK) {
goto error;
}