summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixWm.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-11 08:49:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-11 08:49:10 (GMT)
commit93c2250b76cfde6cbc1f1401ce8ddbd3a2897399 (patch)
tree7eaf719658cc851ca8f0e2903fd64fad1d4f6948 /unix/tkUnixWm.c
parent0cbbe5eeb5a312da166ebe21b7800fb47353621b (diff)
downloadtk-93c2250b76cfde6cbc1f1401ce8ddbd3a2897399.zip
tk-93c2250b76cfde6cbc1f1401ce8ddbd3a2897399.tar.gz
tk-93c2250b76cfde6cbc1f1401ce8ddbd3a2897399.tar.bz2
After TIP #481 reaches Tcl9.0, TkGetStringFromObj() becomes obsolete. This commit shows how.
Diffstat (limited to 'unix/tkUnixWm.c')
-rw-r--r--unix/tkUnixWm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c
index d9a4322..7ef3667 100644
--- a/unix/tkUnixWm.c
+++ b/unix/tkUnixWm.c
@@ -3075,7 +3075,7 @@ WmProtocolCmd(
break;
}
}
- cmd = TkGetStringFromObj(objv[4], &cmdLength);
+ cmd = Tcl_GetStringFromObj(objv[4], &cmdLength);
if (cmdLength > 0) {
protPtr = (ProtocolHandler *)ckalloc(HANDLER_SIZE(cmdLength));
protPtr->protocol = protocol;
@@ -5462,7 +5462,7 @@ SetNetWmType(
for (n = 0; n < objc; ++n) {
Tcl_DString ds, dsName;
TkSizeT len;
- char *name = TkGetStringFromObj(objv[n], &len);
+ char *name = Tcl_GetStringFromObj(objv[n], &len);
Tcl_UtfToUpper(name);
Tcl_UtfToExternalDString(NULL, name, len, &dsName);