diff --git a/collects/framework/private/frame.ss b/collects/framework/private/frame.ss index 3292abe1..bca88165 100644 --- a/collects/framework/private/frame.ss +++ b/collects/framework/private/frame.ss @@ -172,18 +172,21 @@ (let ([number-of-frames (length (send (group:get-the-frame-group) get-frames))]) - (and (super-can-close?) - (or (exit:exiting?) - (not (= 1 number-of-frames)) - (exit:user-oks-exit))))) + (if (preferences:get 'framework:exit-when-no-frames) + (and (super-can-close?) + (or (exit:exiting?) + (not (= 1 number-of-frames)) + (exit:user-oks-exit))) + #t))) (define (on-close) (super-on-close) (send (group:get-the-frame-group) remove-frame this) - (unless (exit:exiting?) - (when (null? (send (group:get-the-frame-group) get-frames)) - (exit:exit)))) + (when (preferences:get 'framework:exit-when-no-frames) + (unless (exit:exiting?) + (when (null? (send (group:get-the-frame-group) get-frames)) + (exit:exit))))) (define (on-focus on?) (super-on-focus on?) diff --git a/collects/framework/private/icon.ss b/collects/framework/private/icon.ss index 7628302e..74a8d77d 100644 --- a/collects/framework/private/icon.ss +++ b/collects/framework/private/icon.ss @@ -16,9 +16,9 @@ (define (get-anchor-bitmap) (force anchor-bitmap)) (define lock-bitmap (delay (include-bitmap (lib "lock.gif" "icons")))) - (define-values (get-lock-bitmap) (force lock-bitmap)) + (define (get-lock-bitmap) (force lock-bitmap)) (define unlock-bitmap (delay (include-bitmap (lib "unlock.gif" "icons")))) - (define-values (get-unlock-bitmap) (force unlock-bitmap)) + (define (get-unlock-bitmap) (force unlock-bitmap)) (define autowrap-bitmap (delay (include-bitmap (lib "return.xbm" "icons")))) (define (get-autowrap-bitmap) (force autowrap-bitmap)) diff --git a/collects/tests/framework/group-test.ss b/collects/tests/framework/group-test.ss index 4a6ffda1..36fb5dba 100644 --- a/collects/tests/framework/group-test.ss +++ b/collects/tests/framework/group-test.ss @@ -74,7 +74,7 @@ (test 'windows-menu (lambda (x) - (equal? x (list "Bring Frame to Front..." "Most Recent Window" "Next Window" "Previous Window" + (equal? x (list "Bring Frame to Front..." "Most Recent Window" #f "first" "test"))) (lambda () (send-sexp-to-mred @@ -91,7 +91,7 @@ (test 'windows-menu-unshown (lambda (x) - (equal? x (list "Bring Frame to Front..." "Most Recent Window" "Next Window" "Previous Window" + (equal? x (list "Bring Frame to Front..." "Most Recent Window" #f "first" "test"))) (lambda () (send-sexp-to-mred @@ -109,7 +109,7 @@ (test 'windows-menu-sorted1 (lambda (x) - (equal? x (list "Bring Frame to Front..." "Most Recent Window" "Next Window" "Previous Window" + (equal? x (list "Bring Frame to Front..." "Most Recent Window" #f "aaa" "bbb" "first"))) (lambda () (send-sexp-to-mred @@ -134,7 +134,7 @@ (test 'windows-menu-sorted2 (lambda (x) - (equal? x (list "Bring Frame to Front..." "Most Recent Window" "Next Window" "Previous Window" + (equal? x (list "Bring Frame to Front..." "Most Recent Window" #f "aaa" "bbb" "first"))) (lambda () (send-sexp-to-mred diff --git a/collects/tests/framework/mem.ss b/collects/tests/framework/mem.ss index 20fa6f87..81dcb9bd 100644 --- a/collects/tests/framework/mem.ss +++ b/collects/tests/framework/mem.ss @@ -117,11 +117,11 @@ (test-frame-allocate 'frame:pasteboard-info%) (test-frame-allocate 'frame:standard-menus%) -;(test-frame-allocate 'frame:text%) -;(test-frame-allocate 'frame:text-info-file%) -;(test-frame-allocate 'frame:searchable%) +(test-frame-allocate 'frame:text%) +(test-frame-allocate 'frame:text-info-file%) +(test-frame-allocate 'frame:searchable%) -;(test-frame-allocate 'frame:pasteboard%) -;(test-frame-allocate 'frame:pasteboard-info-file%) +(test-frame-allocate 'frame:pasteboard%) +(test-frame-allocate 'frame:pasteboard-info-file%) (done) )