adjust drracket window size and position preferences to use a different key

This will make switching back and forth between 5.1.3 and the latest
not lose the frame size and position preferences (since the format
of the data is different now that the current release remembers
the position on a per-monitor-configuration basis)
This commit is contained in:
Robby Findler 2013-01-01 11:23:40 -06:00
parent 0f64a0ae0d
commit 0f9674e1dd
3 changed files with 10 additions and 5 deletions

View File

@ -176,11 +176,11 @@
(let-values ([(w h) (get-display-size)])
(set! frame-width (min frame-width (- w window-trimming-upper-bound-width)))
(set! frame-height (min frame-height (- h window-trimming-upper-bound-height))))
(frame:setup-size-pref 'drracket:unit-window-size
(frame:setup-size-pref 'drracket:window-size
frame-width
frame-height
#:position-preferences
'drracket:unit-window-position))
'drracket:window-position))
(drr:set-default 'drracket:backtrace-window-width 400 number?)
(drr:set-default 'drracket:backtrace-window-height 300 number?)

View File

@ -4350,8 +4350,8 @@ module browser threading seems wrong.
(super-new
[filename filename]
[style '(toolbar-button)]
[size-preferences-key 'drracket:unit-window-size]
[position-preferences-key 'drracket:unit-window-position])
[size-preferences-key 'drracket:window-size]
[position-preferences-key 'drracket:window-position])
(initialize-menus)
@ -4571,7 +4571,7 @@ module browser threading seems wrong.
(when (= 2 (length (send resizable-panel get-children)))
(send resizable-panel set-percentages
(let ([p (preferences:get 'drracket:unit-window-size-percentage)])
(let ([p (preferences:get 'drracket:window-size-percentage)])
(list p (- 1 p)))))
(set-label-prefix (string-constant drscheme))

View File

@ -41,6 +41,11 @@
. DrRacket's window can now be substantially narrower
. DrRacket's frame preferences are now remembered on a
per-montior-configuration basis and, if there is only one frame
open, it will move itself around automatically when the monitor
configuration changes
. DrRacket's paren highlighting uses alpha-blending to avoid having
the highlight disappear completely when completely inside an
error.