summaryrefslogtreecommitdiffstats
path: root/library/menu.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-10-25 21:06:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-10-25 21:06:25 (GMT)
commit0d5336db012f45753abace489f18f0ca299c6961 (patch)
treeb1bf3280a9046df99226158978502eeb26f5b0a3 /library/menu.tcl
parente97381a6d921de403516d5b761539a450f4af83c (diff)
parent1320b8a2a9c1269a345d44d673a7a35707fbbe9c (diff)
downloadtk-core-tip-626.zip
tk-core-tip-626.tar.gz
tk-core-tip-626.tar.bz2
Merge 9.0core-tip-626
Diffstat (limited to 'library/menu.tcl')
-rw-r--r--library/menu.tcl24
1 files changed, 12 insertions, 12 deletions
diff --git a/library/menu.tcl b/library/menu.tcl
index 57dc963..50319ef 100644
--- a/library/menu.tcl
+++ b/library/menu.tcl
@@ -408,7 +408,7 @@ proc ::tk::MenuUnpost menu {
#
# Arguments:
# w - The name of the menubutton widget.
-# upDown - "down" means button 1 is pressed, "up" means
+# upDown - "down" means button 1 is pressed, "up" means
# it isn't.
# rootx, rooty - Coordinates of mouse, in (virtual?) root window.
@@ -1199,18 +1199,18 @@ if {[tk windowingsystem] eq "aqua"} {
incr x [expr {[winfo width $button]}]
}
default { # flush
- if {[$button cget -indicatoron]} {
- if {$cx ne ""} {
- set x [expr {$cx - [winfo reqwidth $menu] / 2}]
- set l [font metrics [$menu cget -font] -linespace]
- set y [expr {$cy - $l/2 - 2}]
- } else {
- incr x [expr {([winfo width $button] - \
+ if {[$button cget -indicatoron]} {
+ if {$cx ne ""} {
+ set x [expr {$cx - [winfo reqwidth $menu] / 2}]
+ set l [font metrics [$menu cget -font] -linespace]
+ set y [expr {$cy - $l/2 - 2}]
+ } else {
+ incr x [expr {([winfo width $button] - \
[winfo reqwidth $menu])/ 2}]
- }
- } else {
- incr y [winfo height $button]
- }
+ }
+ } else {
+ incr y [winfo height $button]
+ }
}
}
PostOverPoint $menu $x $y $entry