racket/gui cocoa: fix 'no-sheet style for `dialog%'

original commit: d5b17210e36db4da605773c9609e91a1aba801b9
This commit is contained in:
Matthew Flatt 2012-05-16 07:34:44 -06:00
parent 78821bc3b3
commit d2c27b505b

View File

@ -267,6 +267,8 @@
(define is-a-dialog? is-dialog?)
(define/public (frame-is-dialog?) is-a-dialog?)
(define not-sheet? (and (memq 'no-sheet style) #t))
(define/public (frame-relative-dialog-status win) #f)
(define/override (get-dialog-level) 0)
@ -301,6 +303,7 @@
(hide-children))
(if on?
(if (and is-a-dialog?
(not not-sheet?)
(let ([p (get-parent)])
(and p
(send p can-have-sheet?)