diff options
author | jenglish <jenglish@noemail.net> | 2013-02-27 14:41:41 (GMT) |
---|---|---|
committer | jenglish <jenglish@noemail.net> | 2013-02-27 14:41:41 (GMT) |
commit | 5dab696ef9e1e46b5652ca961201837c4811ffc4 (patch) | |
tree | e4c799bd7715375437a5ca9333297d2092c73630 /generic/tkListbox.c | |
parent | 5051d149ad4337b0164cbdc11886f37c11d5ea92 (diff) | |
download | tk-5dab696ef9e1e46b5652ca961201837c4811ffc4.zip tk-5dab696ef9e1e46b5652ca961201837c4811ffc4.tar.gz tk-5dab696ef9e1e46b5652ca961201837c4811ffc4.tar.bz2 |
Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper
exists and is used.
FossilOrigin-Name: 6c26562fe3f83eea390818ed36601930e1cbe0d9
Diffstat (limited to 'generic/tkListbox.c')
-rw-r--r-- | generic/tkListbox.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c index 77a2d34..c5460f9 100644 --- a/generic/tkListbox.c +++ b/generic/tkListbox.c @@ -615,8 +615,8 @@ ListboxWidgetObjCmd( * valid subcommand names */ - result = Tcl_GetIndexFromObjStruct(interp, objv[1], commandNames, - sizeof(char *), "option", 0, &cmdIndex); + result = Tcl_GetIndexFromObj(interp, objv[1], commandNames, + "option", 0, &cmdIndex); if (result != TCL_OK) { return result; } @@ -969,8 +969,8 @@ ListboxWidgetObjCmd( break; } - result = Tcl_GetIndexFromObjStruct(interp, objv[2], scanCommandNames, - sizeof(char *), "option", 0, &scanCmdIndex); + result = Tcl_GetIndexFromObj(interp, objv[2], scanCommandNames, + "option", 0, &scanCmdIndex); if (result != TCL_OK) { break; } @@ -1164,8 +1164,8 @@ ListboxSelectionSubCmd( return result; } } - result = Tcl_GetIndexFromObjStruct(interp, objv[2], selCommandNames, - sizeof(char *), "option", 0, &selCmdIndex); + result = Tcl_GetIndexFromObj(interp, objv[2], selCommandNames, + "option", 0, &selCmdIndex); if (result != TCL_OK) { return result; } @@ -2709,8 +2709,7 @@ GetListboxIndex( * First see if the index is one of the named indices. */ - result = Tcl_GetIndexFromObjStruct(NULL, indexObj, indexNames, - sizeof(char *), "", 0, &index); + result = Tcl_GetIndexFromObj(NULL, indexObj, indexNames, "", 0, &index); if (result == TCL_OK) { switch (index) { case INDEX_ACTIVE: |