diff options
author | jenglish <jenglish@flightlab.com> | 2013-02-27 14:41:41 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2013-02-27 14:41:41 (GMT) |
commit | 2b76c49e30421aa22968c63e57c49bfaa6238e2f (patch) | |
tree | e4c799bd7715375437a5ca9333297d2092c73630 /generic/tkPanedWindow.c | |
parent | b83ed80002d8d8eb676c9f7c81a794e8216e3498 (diff) | |
download | tk-2b76c49e30421aa22968c63e57c49bfaa6238e2f.zip tk-2b76c49e30421aa22968c63e57c49bfaa6238e2f.tar.gz tk-2b76c49e30421aa22968c63e57c49bfaa6238e2f.tar.bz2 |
Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper
exists and is used.
Diffstat (limited to 'generic/tkPanedWindow.c')
-rw-r--r-- | generic/tkPanedWindow.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c index 8b242aa..733610e 100644 --- a/generic/tkPanedWindow.c +++ b/generic/tkPanedWindow.c @@ -540,8 +540,8 @@ PanedWindowWidgetObjCmd( return TCL_ERROR; } - if (Tcl_GetIndexFromObjStruct(interp, objv[1], optionStrings, - sizeof(char *), "command", 0, &index) != TCL_OK) { + if (Tcl_GetIndexFromObj(interp, objv[1], optionStrings, "command", + 0, &index) != TCL_OK) { return TCL_ERROR; } @@ -1084,8 +1084,8 @@ PanedWindowSashCommand( return TCL_ERROR; } - if (Tcl_GetIndexFromObjStruct(interp, objv[2], sashOptionStrings, - sizeof(char *), "option", 0, &index) != TCL_OK) { + if (Tcl_GetIndexFromObj(interp, objv[2], sashOptionStrings, "option", 0, + &index) != TCL_OK) { return TCL_ERROR; } @@ -2778,8 +2778,8 @@ PanedWindowProxyCommand( return TCL_ERROR; } - if (Tcl_GetIndexFromObjStruct(interp, objv[2], optionStrings, - sizeof(char *), "option", 0, &index) != TCL_OK) { + if (Tcl_GetIndexFromObj(interp, objv[2], optionStrings, "option", 0, + &index) != TCL_OK) { return TCL_ERROR; } |