diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-02-22 08:44:24 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-02-22 08:44:24 (GMT) |
commit | f584bb01ccf547af727096674302e8a6dbae1252 (patch) | |
tree | e3dc2cfda6b3b802979347c59b408b18a068b995 /generic/tkMenu.c | |
parent | 2103923eee4d74b8f49cfdb91a73c3ef32baab5f (diff) | |
download | tk-f584bb01ccf547af727096674302e8a6dbae1252.zip tk-f584bb01ccf547af727096674302e8a6dbae1252.tar.gz tk-f584bb01ccf547af727096674302e8a6dbae1252.tar.bz2 |
Replace all Tcl_TraceVar/Tcl_UntraceVar with Tcl_TraceVar2/Tcl_UntraceVar2 calls: The former are just thin wrappers around the latter.
Diffstat (limited to 'generic/tkMenu.c')
-rw-r--r-- | generic/tkMenu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c index 70e8335..267acd7 100644 --- a/generic/tkMenu.c +++ b/generic/tkMenu.c @@ -1492,7 +1492,7 @@ DestroyMenuEntry( && (mePtr->namePtr != NULL)) { const char *varName = Tcl_GetString(mePtr->namePtr); - Tcl_UntraceVar(menuPtr->interp, varName, + Tcl_UntraceVar2(menuPtr->interp, varName, NULL, TCL_GLOBAL_ONLY|TCL_TRACE_WRITES|TCL_TRACE_UNSETS, MenuVarProc, mePtr); } @@ -1959,7 +1959,7 @@ ConfigureMenuEntry( || (mePtr->type == RADIO_BUTTON_ENTRY))) { const char *name = Tcl_GetString(mePtr->namePtr); - Tcl_UntraceVar(menuPtr->interp, name, + Tcl_UntraceVar2(menuPtr->interp, name, NULL, TCL_GLOBAL_ONLY|TCL_TRACE_WRITES|TCL_TRACE_UNSETS, MenuVarProc, mePtr); } @@ -2544,7 +2544,7 @@ MenuVarProc( if (flags & TCL_TRACE_UNSETS) { mePtr->entryFlags &= ~ENTRY_SELECTED; if (flags & TCL_TRACE_DESTROYED) { - Tcl_TraceVar(interp, name, + Tcl_TraceVar2(interp, name, NULL, TCL_GLOBAL_ONLY|TCL_TRACE_WRITES|TCL_TRACE_UNSETS, MenuVarProc, clientData); } |