fixed bug in new font preference handling
svn: r6667
This commit is contained in:
parent
5d2f4c5a12
commit
a87cf03005
|
@ -105,14 +105,20 @@
|
|||
(preferences:set
|
||||
'framework:standard-style-list:font-name
|
||||
(list-ref all-faces (car choice)))))])))))]
|
||||
[font-name (preferences:get 'framework:standard-style-list:font-name)])
|
||||
[font-name (preferences:get 'framework:standard-style-list:font-name)]
|
||||
[set-choice-selection
|
||||
(λ (font-name)
|
||||
(cond
|
||||
[(send choice find-string font-name)
|
||||
(send choice set-string-selection font-name)]
|
||||
[else
|
||||
(send choice set-selection (- (send choice get-number) 1))]))])
|
||||
|
||||
(preferences:add-callback
|
||||
'framework:standard-style-list:font-name
|
||||
(λ (p v)
|
||||
(when (send choice find-string v)
|
||||
(send choice set-string-selection v))))
|
||||
(when (send choice find-string font-name)
|
||||
(send choice set-string-selection font-name))
|
||||
(set-choice-selection v)))
|
||||
(set-choice-selection font-name)
|
||||
choice)]
|
||||
[smoothing-contol
|
||||
(new choice%
|
||||
|
|
|
@ -372,7 +372,7 @@
|
|||
(preferences:add-callback 'framework:standard-style-list:font-name (λ (p v) (set-font-name v)))
|
||||
(preferences:add-callback 'framework:standard-style-list:smoothing (λ (p v) (set-font-smoothing v)))
|
||||
|
||||
(unless (member (preferences:get 'framework:standard-style-list:font-name) (get-face-list 'mono))
|
||||
(unless (member (preferences:get 'framework:standard-style-list:font-name) (get-face-list))
|
||||
(preferences:set 'framework:standard-style-list:font-name (get-family-builtin-face 'modern))))
|
||||
|
||||
;; set-standard-style-list-delta : string (is-a?/c style-delta<%>) -> void
|
||||
|
|
Loading…
Reference in New Issue
Block a user