summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-22 18:45:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-22 18:45:23 (GMT)
commit12702399885ac77d7647290206085dccdf491797 (patch)
tree4f623cd88a17c8a51b5b6969e7f801e45c53dcf0 /macosx
parent2b5f153185ed0a402daa10f6e1e86b7aaab41a5b (diff)
parent1ad353b0c90f41800998e2b597e4e6c60c01e928 (diff)
downloadtk-12702399885ac77d7647290206085dccdf491797.zip
tk-12702399885ac77d7647290206085dccdf491797.tar.gz
tk-12702399885ac77d7647290206085dccdf491797.tar.bz2
Merge 8.7
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXMenu.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index 45ae1e6..1908bb9 100644
--- a/macosx/tkMacOSXMenu.c
+++ b/macosx/tkMacOSXMenu.c
@@ -935,7 +935,7 @@ TkpPostMenu(
int x, int y, /* The screen coordinates where the top left
* corner of the menu, or of the specified
* entry, will be located. */
- int index)
+ Tcl_Size index)
{
int result;
Tk_Window realWin = menuPtr->tkwin;
@@ -1029,7 +1029,7 @@ int
TkpPostTearoffMenu(
TCL_UNUSED(Tcl_Interp *), /* The interpreter this menu lives in */
TkMenu *menuPtr, /* The menu we are posting */
- int x, int y, int index) /* The screen coordinates where the top left
+ int x, int y, Tcl_Size index) /* The screen coordinates where the top left
* corner of the menu, or of the specified
* entry, will be located. */
{
@@ -1057,7 +1057,7 @@ TkpPostTearoffMenu(
* at the given coordinates.
*/
- if (index < 0 || (Tcl_Size)index >= menuPtr->numEntries) {
+ if (index < 0 || index >= menuPtr->numEntries) {
index = menuPtr->numEntries - 1;
}
if (index >= 0) {
@@ -1402,8 +1402,8 @@ TkpComputeStandardMenuGeometry(
Tk_FontMetrics menuMetrics, entryMetrics;
int modifierCharWidth, menuModifierCharWidth;
int x, y, modifierWidth, labelWidth, indicatorSpace;
- int windowWidth, windowHeight, accelWidth;
- int i, maxWidth;
+ int windowWidth, maxWidth, windowHeight, accelWidth;
+ Tcl_Size i;
int entryWidth, maxIndicatorSpace, borderWidth, activeBorderWidth;
TkMenuEntry *mePtr;
int haveAccel = 0;
@@ -1439,7 +1439,7 @@ TkpComputeStandardMenuGeometry(
Tk_GetFontMetrics(menuFont, &menuMetrics);
menuModifierCharWidth = ModifierCharWidth(menuFont);
- for (i = 0; i < (int) menuPtr->numEntries; i++) {
+ for (i = 0; i < menuPtr->numEntries; i++) {
mePtr = menuPtr->entries[i];
if (mePtr->type == CASCADE_ENTRY || mePtr->accelLength > 0) {
haveAccel = 1;
@@ -1447,7 +1447,7 @@ TkpComputeStandardMenuGeometry(
}
}
- for (i = 0; i < (int) menuPtr->numEntries; i++) {
+ for (i = 0; i < menuPtr->numEntries; i++) {
mePtr = menuPtr->entries[i];
if (mePtr->type == TEAROFF_ENTRY) {
continue;
@@ -1671,10 +1671,10 @@ void
RecursivelyClearActiveMenu(
TkMenu *menuPtr) /* The menu to reset. */
{
- int i;
+ Tcl_Size i;
TkActivateMenuEntry(menuPtr, TCL_INDEX_NONE);
- for (i = 0; i < (int) menuPtr->numEntries; i++) {
+ for (i = 0; i < menuPtr->numEntries; i++) {
TkMenuEntry *mePtr = menuPtr->entries[i];
if (mePtr->type == CASCADE_ENTRY