Import Tk 8.6.10
This commit is contained in:
@@ -26,26 +26,15 @@ static char *
|
||||
VarTraceProc(
|
||||
ClientData clientData, /* Widget record pointer */
|
||||
Tcl_Interp *interp, /* Interpreter containing variable. */
|
||||
const char *name1, /* Name of variable. */
|
||||
const char *name2, /* Second part of variable name. */
|
||||
const char *name1, /* (unused) */
|
||||
const char *name2, /* (unused) */
|
||||
int flags) /* Information about what happened. */
|
||||
{
|
||||
Ttk_TraceHandle *tracePtr = clientData;
|
||||
const char *name, *value;
|
||||
Tcl_Obj *valuePtr;
|
||||
|
||||
if (flags & TCL_INTERP_DESTROYED) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* See ticket [5d991b82].
|
||||
*/
|
||||
|
||||
if (tracePtr->varnameObj == NULL) {
|
||||
Tcl_UntraceVar2(interp, name1, name2,
|
||||
TCL_GLOBAL_ONLY|TCL_TRACE_WRITES|TCL_TRACE_UNSETS,
|
||||
VarTraceProc, clientData);
|
||||
if (Tcl_InterpDeleted(interp)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user