summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-14 08:32:07 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-14 08:32:07 (GMT)
commitfa083c8aaf7ff3d22de606e25adb0b598dba0dd6 (patch)
tree51134cd671ebf8759cc2b4ff148cd7d9d3797725 /win
parent6eb17d212faf798cf9cd89c85467d8f8893ca614 (diff)
downloadtk-fa083c8aaf7ff3d22de606e25adb0b598dba0dd6.zip
tk-fa083c8aaf7ff3d22de606e25adb0b598dba0dd6.tar.gz
tk-fa083c8aaf7ff3d22de606e25adb0b598dba0dd6.tar.bz2
Better approach, using "Tk" prefix for UTF-32 versions of API
Diffstat (limited to 'win')
-rw-r--r--win/tkWinMenu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c
index c102e14..0175514 100644
--- a/win/tkWinMenu.c
+++ b/win/tkWinMenu.c
@@ -509,7 +509,7 @@ GetEntryText(
: Tcl_GetString(mePtr->accelPtr);
const char *p, *next;
Tcl_DString itemString;
- Tcl_UniChar ch = 0;
+ int ch = 0;
/*
* We have to construct the string with an ampersand preceeding the
@@ -526,7 +526,7 @@ GetEntryText(
if (*p == '&') {
Tcl_DStringAppend(&itemString, "&", 1);
}
- next = p + Tcl_UtfToUniChar(p, &ch);
+ next = p + TkUtfToUniChar(p, &ch);
Tcl_DStringAppend(&itemString, p, (int) (next - p));
}
ch = 0;
@@ -536,7 +536,7 @@ GetEntryText(
if (*p == '&') {
Tcl_DStringAppend(&itemString, "&", 1);
}
- next = p + Tcl_UtfToUniChar(p, &ch);
+ next = p + TkUtfToUniChar(p, &ch);
Tcl_DStringAppend(&itemString, p, (int) (next - p));
}
}
@@ -2102,13 +2102,13 @@ DrawMenuUnderline(
if ((mePtr->underline >= 0) && (mePtr->labelPtr != NULL)) {
int len;
- len = Tcl_GetCharLength(mePtr->labelPtr);
+ len = TkGetCharLength(mePtr->labelPtr);
if (mePtr->underline < len) {
const char *label, *start, *end;
int ch;
label = Tcl_GetString(mePtr->labelPtr);
- start = Tcl_UtfAtIndex(label, mePtr->underline);
+ start = TkUtfAtIndex(label, mePtr->underline);
end = start + TkUtfToUniChar(start, &ch);
Tk_UnderlineChars(menuPtr->display, d,
gc, tkfont, label, x + mePtr->indicatorSpace,