made the underlined letter move around in the close & close-tab menu items

svn: r6778
This commit is contained in:
Robby Findler 2007-06-30 04:16:39 +00:00
parent 6ce5440fa7
commit e621175f62
2 changed files with 9 additions and 2 deletions

View File

@ -2318,10 +2318,16 @@ module browser threading seems wrong.
(define/private (update-close-tab-menu-item-shortcut item)
(let ([just-one? (and (pair? tabs) (null? (cdr tabs)))])
(send item set-label (if just-one?
(string-constant close-tab)
(string-constant close-tab-amp)))
(send item set-shortcut (if just-one? #f #\w))))
(define/private (update-close-menu-item-shortcut item)
(let ([just-one? (and (pair? tabs) (null? (cdr tabs)))])
(send item set-label (if just-one?
(string-constant close-menu-item)
(string-constant close)))
(send item set-shortcut (if just-one? #\w #f))))
@ -2620,7 +2626,7 @@ module browser threading seems wrong.
(define/override (file-menu:between-close-and-quit file-menu)
(set! close-tab-menu-item
(new (get-menu-item%)
(label (string-constant close-tab))
(label (string-constant close-tab-no-amp))
(demand-callback
(λ (item)
(send item enable (1 . < . (send tabs-panel get-number)))))

View File

@ -800,6 +800,7 @@ please adhere to these guidelines:
(print-interactions "Print Interactions...")
(new-tab "New Tab")
(close-tab "Close Tab") ;; must not have any &s in it.
(close-tab-amp "&Close Tab") ;; like close-tab, but with an ampersand on the same letter as the one in close-menu-item
;;; edit-menu
(split-menu-item-label "&Split")