<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Sorry, should have put this in the commit messages: please merge both of these to the release branch.<div><br></div><div>John</div><div><br><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><a href="mailto:clements@racket-lang.org">clements@racket-lang.org</a><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">January 18, 2012 2:51:50 PM PST<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><a href="mailto:dev@racket-lang.org">dev@racket-lang.org</a><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>[plt] Push #24173: master branch updated</b><br></span></div><br><div>clements has updated `master' from 276cb4150d to 481bc2f00f.<br> <a href="http://git.racket-lang.org/plt/276cb4150d..481bc2f00f">http://git.racket-lang.org/plt/276cb4150d..481bc2f00f</a><br><br>=====[ 2 Commits ]======================================================<br><br>Directory summary:<br> 100.0% collects/stepper/private/<br><br>~~~~~~~~~~<br><br>758523b John Clements <<a href="mailto:clements@racket-lang.org">clements@racket-lang.org</a>> 2012-01-18 13:08<br>:<br>| put status bar update on stepper frame eventspace<br>:<br> M collects/stepper/private/view-controller.rkt | 19 ++++++++++---------<br><br>~~~~~~~~~~<br><br>481bc2f John Clements <<a href="mailto:clements@racket-lang.org">clements@racket-lang.org</a>> 2012-01-18 14:51<br>:<br>| make sure initial update goes on eventspace thread<br>:<br> M collects/stepper/private/view-controller.rkt | 11 ++++++++---<br><br>=====[ Overall Diff ]===================================================<br><br>collects/stepper/private/view-controller.rkt<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>--- OLD/collects/stepper/private/view-controller.rkt<br>+++ NEW/collects/stepper/private/view-controller.rkt<br>@@ -79,19 +79,20 @@<br> (define view #f)<br><br> ;; wait for steps to show up on the channel. When they do, add them to the list.<br>- (define (start-listener-thread)<br>+ (define (start-listener-thread stepper-frame-eventspace)<br> (thread<br> (lambda ()<br> (let loop ()<br> (define new-result (async-channel-get view-channel))<br> (define new-step (format-result new-result))<br>- (queue-callback<br>- (lambda ()<br>- (set! view-history (append view-history (list new-step)))<br>- (set! num-steps-available (length view-history))<br>- ;; this is only necessary the first time, but it's cheap:<br>- (semaphore-post first-step-sema)<br>- (update-status-bar)))<br>+ (parameterize ([current-eventspace stepper-frame-eventspace])<br>+ (queue-callback<br>+ (lambda ()<br>+ (set! view-history (append view-history (list new-step)))<br>+ (set! num-steps-available (length view-history))<br>+ ;; this is only necessary the first time, but it's cheap:<br>+ (semaphore-post first-step-sema)<br>+ (update-status-bar))))<br> (loop)))))<br><br><br>@@ -374,8 +375,9 @@<br> (send (send s-frame edit-menu:get-undo-item) enable #f)<br> (send (send s-frame edit-menu:get-redo-item) enable #f)<br><br>+ (define stepper-frame-eventspace (send s-frame get-eventspace))<br> ;; START THE MODEL<br>- (start-listener-thread)<br>+ (start-listener-thread stepper-frame-eventspace)<br> (model:go<br> program-expander-prime <br> ;; what do do with the results:<br>@@ -392,8 +394,12 @@<br> (thread<br> (lambda ()<br> (semaphore-wait first-step-sema)<br>- (jump-to-beginning)<br>- (enable-all-buttons)))<br>+ (parameterize<br>+ ([current-eventspace stepper-frame-eventspace])<br>+ (queue-callback<br>+ (lambda ()<br>+ (jump-to-beginning)<br>+ (enable-all-buttons))))))<br><br> s-frame)<br><br></div></blockquote></div><br></div></body></html>