diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-04-11 10:39:54 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-04-11 10:39:54 (GMT) |
commit | 6f43610172ef499ef09197cc5e0adf3582360a5c (patch) | |
tree | 765f362a28b1996875676e9dea0d596ada815857 /generic | |
parent | ee87f2694be353b83f0306ab4bc03225b61b7caf (diff) | |
download | tk-6f43610172ef499ef09197cc5e0adf3582360a5c.zip tk-6f43610172ef499ef09197cc5e0adf3582360a5c.tar.gz tk-6f43610172ef499ef09197cc5e0adf3582360a5c.tar.bz2 |
Deprecate Tk_FreeXId(), since it doesn't do anything since 2008-08-19: [8356aa0eec57fa7a]
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkBind.c | 2 | ||||
-rw-r--r-- | generic/tkGC.c | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index cb516e8..c75f6a0 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.c @@ -2868,7 +2868,7 @@ GetAllVirtualEvents( * Any other fields in eventPtr which are not specified by the pattern * string or the optional arguments, are set to 0. * - * The event may be handled sychronously or asynchronously, depending on + * The event may be handled synchronously or asynchronously, depending on * the value specified by the optional "-when" option. The default * setting is synchronous. * diff --git a/generic/tkGC.c b/generic/tkGC.c index 5663ede..c424e30 100644 --- a/generic/tkGC.c +++ b/generic/tkGC.c @@ -314,7 +314,6 @@ Tk_FreeGC( gcPtr = Tcl_GetHashValue(idHashPtr); gcPtr->refCount--; if (gcPtr->refCount == 0) { - Tk_FreeXId(gcPtr->display, (XID) XGContextFromGC(gcPtr->gc)); XFreeGC(gcPtr->display, gcPtr->gc); Tcl_DeleteHashEntry(gcPtr->valueHashPtr); Tcl_DeleteHashEntry(idHashPtr); @@ -351,12 +350,6 @@ TkGCCleanup( entryPtr != NULL; entryPtr = Tcl_NextHashEntry(&search)) { gcPtr = Tcl_GetHashValue(entryPtr); - /* - * This call is not needed, as it is only used on Unix to restore the - * Id to the stack pool, and we don't want to use them anymore. - * Tk_FreeXId(gcPtr->display, (XID) XGContextFromGC(gcPtr->gc)); - */ - XFreeGC(gcPtr->display, gcPtr->gc); Tcl_DeleteHashEntry(gcPtr->valueHashPtr); Tcl_DeleteHashEntry(entryPtr); |