summaryrefslogtreecommitdiffstats
path: root/generic/tkTextWind.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-11 09:51:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-11 09:51:01 (GMT)
commit0e5b62601e1b369ad78f4eee43d473e74702cbd6 (patch)
treee608d2723552872785a3a140b3d4098636edfeae /generic/tkTextWind.c
parent1d53b374aa101c0a5fe079f6e1ead45b64204af9 (diff)
downloadtk-0e5b62601e1b369ad78f4eee43d473e74702cbd6.zip
tk-0e5b62601e1b369ad78f4eee43d473e74702cbd6.tar.gz
tk-0e5b62601e1b369ad78f4eee43d473e74702cbd6.tar.bz2
Eliminate all usage of deprecated Tcl_EvalObj, Tcl_GlobalEval and Tcl_GlobalEvalObj functions.
Add [file normalize] to pkgIndex.tcl, in order to prevent '..' in file paths. Remove unused TCLPATCHL, it should be ".0" for all final releases.
Diffstat (limited to 'generic/tkTextWind.c')
-rw-r--r--generic/tkTextWind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkTextWind.c b/generic/tkTextWind.c
index 9f2582e..999febe 100644
--- a/generic/tkTextWind.c
+++ b/generic/tkTextWind.c
@@ -769,7 +769,7 @@ EmbWinLayoutProc(textPtr, indexPtr, ewPtr, offset, maxX, maxChars,
* the window.
*/
- code = Tcl_GlobalEval(textPtr->interp, ewPtr->body.ew.create);
+ code = Tcl_EvalEx(textPtr->interp, ewPtr->body.ew.create, -1, TCL_EVAL_GLOBAL);
if (code != TCL_OK) {
createError:
Tcl_BackgroundError(textPtr->interp);