diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-03 15:46:57 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-03 15:46:57 (GMT) |
commit | d6e7246b215b507e14e2653aaeaa12804a31166b (patch) | |
tree | 7d90923a65e071c2e19ff6df8f06391592300381 /unix/tkUnixSysNotify.c | |
parent | cccc9d7b90108183daca454616fc6f97147f0bdd (diff) | |
download | tk-d6e7246b215b507e14e2653aaeaa12804a31166b.zip tk-d6e7246b215b507e14e2653aaeaa12804a31166b.tar.gz tk-d6e7246b215b507e14e2653aaeaa12804a31166b.tar.bz2 |
More -1 -> TCL_INDEX_NONE
Diffstat (limited to 'unix/tkUnixSysNotify.c')
-rwxr-xr-x | unix/tkUnixSysNotify.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/unix/tkUnixSysNotify.c b/unix/tkUnixSysNotify.c index 8f5a972..f4a6d12 100755 --- a/unix/tkUnixSysNotify.c +++ b/unix/tkUnixSysNotify.c @@ -145,11 +145,10 @@ SysNotifyCmd( Tcl_DStringInit(&dst); Tcl_DStringInit(&dsm); enc = Tcl_GetEncoding(NULL, "utf-8"); - (void)Tcl_UtfToExternalDStringEx(enc, title, -1, TCL_ENCODING_NOCOMPLAIN, &dst); - (void)Tcl_UtfToExternalDStringEx(enc, message, -1, TCL_ENCODING_NOCOMPLAIN, &dsm); + char *dstStr = Tcl_UtfToExternalDString(enc, title, TCL_INDEX_NONE, &dst); + char *dsmStr = Tcl_UtfToExternalDString(enc, message, TCL_INDEX_NONE, &dsm); notify_init(appname); - notif = notify_notification_new(Tcl_DStringValue(&dst), - Tcl_DStringValue(&dsm), icon, NULL); + notif = notify_notification_new(dstStr, dsmStr, icon, NULL); notify_notification_show(notif, NULL); Tcl_DStringFree(&dsm); Tcl_DStringFree(&dst); @@ -194,7 +193,7 @@ SysNotify_Init( while (lnlibs[i] != NULL) { Tcl_ResetResult(interp); - nameobj = Tcl_NewStringObj(lnlibs[i], -1); + nameobj = Tcl_NewStringObj(lnlibs[i], TCL_INDEX_NONE); Tcl_IncrRefCount(nameobj); if (Tcl_LoadFile(interp, nameobj, NULL, 0, NULL, &ln_fns.lib) == TCL_OK) { |