add a GUI interface to toggle the x selection mode
closes PR 15365
This commit is contained in:
parent
3b280551c2
commit
a115076fe4
|
@ -25,6 +25,12 @@
|
||||||
|
|
||||||
(application-preferences-handler (λ () (preferences:show-dialog)))
|
(application-preferences-handler (λ () (preferences:show-dialog)))
|
||||||
|
|
||||||
|
(preferences:set-default 'framework:editor-x-selection-mode #t boolean?)
|
||||||
|
(when (equal? (system-type) 'unix)
|
||||||
|
(preferences:add-callback
|
||||||
|
'framework:editor-x-selection-mode
|
||||||
|
(λ (p v) (editor-set-x-selection-mode v))))
|
||||||
|
|
||||||
(preferences:set-default 'framework:ascii-art-enlarge #f boolean?)
|
(preferences:set-default 'framework:ascii-art-enlarge #f boolean?)
|
||||||
|
|
||||||
(preferences:set-default 'framework:color-scheme 'classic symbol?)
|
(preferences:set-default 'framework:color-scheme 'classic symbol?)
|
||||||
|
|
|
@ -512,6 +512,11 @@ the state transitions / contracts are:
|
||||||
(string-constant maximum-char-width-guide-pref-check-box)
|
(string-constant maximum-char-width-guide-pref-check-box)
|
||||||
(λ (n) (and (exact-integer? n) (>= n 2))))
|
(λ (n) (and (exact-integer? n) (>= n 2))))
|
||||||
|
|
||||||
|
(when (equal? (system-type) 'unix)
|
||||||
|
(add-check editor-panel
|
||||||
|
'framework:editor-x-selection-mode
|
||||||
|
(string-constant editor-x-selection-mode)))
|
||||||
|
|
||||||
(editor-panel-procs editor-panel))))])
|
(editor-panel-procs editor-panel))))])
|
||||||
(add-editor-checkbox-panel)))
|
(add-editor-checkbox-panel)))
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"pict-lib"
|
"pict-lib"
|
||||||
"scheme-lib"
|
"scheme-lib"
|
||||||
"scribble-lib"
|
"scribble-lib"
|
||||||
["string-constants-lib" #:version "1.9"]
|
["string-constants-lib" #:version "1.14"]
|
||||||
"option-contract-lib"
|
"option-contract-lib"
|
||||||
"2d-lib"
|
"2d-lib"
|
||||||
"compatibility-lib"
|
"compatibility-lib"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user