Skip to content

Commit 2eafd2f

Browse files
author
jan.nijtmans
committed
(cherry-pick): Rename the fallback proc menubarheight to testmenubarheight
1 parent 0866119 commit 2eafd2f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/constraints.tcl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,21 +255,21 @@ namespace eval tk {
255255
# got moved to the requested location should use a y coordinate larger than the
256256
# height of the menubar (normally 23 pixels) and an x coordinate larger than the
257257
# width of the dock, if it happens to be on the left.
258-
# menubarheight deals with this issue but may not be available from the test
258+
# testmenubarheight deals with this issue but may not be available from the test
259259
# environment, therefore provide a fallback here
260-
if {[llength [info procs menubarheight]] == 0} {
260+
if {[llength [info procs testmenubarheight]] == 0} {
261261
if {[tk windowingsystem] ne "aqua"} {
262262
# Windows may overlap the menubar
263-
proc menubarheight {} {
263+
proc testmenubarheight {} {
264264
return 0
265265
}
266266
} else {
267267
# Windows may not overlap the menubar
268-
proc menubarheight {} {
268+
proc testmenubarheight {} {
269269
return 30 ; # arbitrary value known to be larger than the menubar height
270270
}
271271
}
272-
namespace export menubarheight
272+
namespace export testmenubarheight
273273
}
274274
}
275275
}

0 commit comments

Comments
 (0)