adjusted case of 'show line numbers' to match menu / prefs distinction

This commit is contained in:
Robby Findler 2010-11-21 07:15:02 -06:00
parent 84fc640752
commit 3b56f81b10
2 changed files with 7 additions and 6 deletions

View File

@ -3799,15 +3799,15 @@ module browser threading seems wrong.
(new menu:can-restore-menu-item%
[label (if (show-line-numbers?)
(string-constant hide-line-numbers)
(string-constant show-line-numbers))]
(string-constant hide-line-numbers/menu)
(string-constant show-line-numbers/menu))]
[parent (get-show-menu)]
[callback (lambda (self event)
(define value (preferences:get 'drracket:show-line-numbers?))
(send self set-label
(if value
(string-constant show-line-numbers)
(string-constant hide-line-numbers)))
(string-constant show-line-numbers/menu)
(string-constant hide-line-numbers/menu)))
(preferences:set 'drracket:show-line-numbers? (not value))
(show-line-numbers! (not value)))])

View File

@ -448,8 +448,9 @@ please adhere to these guidelines:
(show-interactions-on-execute "Automatically open interactions window when running a program")
(switch-to-module-language-automatically "Automatically switch to the module language when opening a module")
(interactions-beside-definitions "Put the interactions window beside the definitions window") ;; in preferences, below the checkbox one line above this one
(show-line-numbers "Show Line Numbers")
(hide-line-numbers "Hide Line Numbers")
(show-line-numbers "Show line numbers")
(show-line-numbers/menu "Show Line Numbers") ;; just like the above, but capitalized for appearance in a menu item
(hide-line-numbers/menu "Hide Line Numbers")
(limit-interactions-size "Limit interactions size")
(background-color "Background Color")
(default-text-color "Default text") ;; used for configuring colors, but doesn't need the word "color"