avoid redundant on-subwindow-X calls due to panels in a frame

This commit is contained in:
Matthew Flatt 2010-10-16 20:31:01 -06:00
parent aa1322845e
commit cafc6d697e

View File

@ -122,8 +122,10 @@
[finish (entry-point
(lambda (top-level hide-panel?)
(set! mid-panel (make-object wx-vertical-panel% #f this top-level null #f))
(send mid-panel skip-subwindow-events? #t)
(send (send mid-panel area-parent) add-child mid-panel)
(set! wx-panel (make-object wx-vertical-panel% #f this mid-panel null #f))
(send wx-panel skip-subwindow-events? #t)
(send (send wx-panel area-parent) add-child wx-panel)
(send top-level set-container wx-panel)
(when hide-panel?