<p>Hi Walter,</p>
<p>You might also want to take a quick look at what Physics is doing, might not be pretty, but I remember needing to catch more than one event/test to make sure the simulation was suspended correctly across a range of past build releases, perhaps also a case where switching to a desktop view vs. another activity needed to watch for a different event.</p>

<p>Regards,<br>
--Gary</p>
<div class="gmail_quote">On May 21, 2012 1:44 PM, "Walter Bender" <<a href="mailto:walter.bender@gmail.com">walter.bender@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, May 21, 2012 at 6:44 AM, Sascha Silbe <<a href="mailto:silbe@activitycentral.com">silbe@activitycentral.com</a>> wrote:<br>
> Walter Bender <<a href="mailto:walter.bender@gmail.com">walter.bender@gmail.com</a>> writes:<br>
><br>
>> On Sun, May 20, 2012 at 7:00 PM, Sascha Silbe <<a href="mailto:silbe@activitycentral.com">silbe@activitycentral.com</a>> wrote:<br>
> [...]<br>
>>>  - Turtle Art v138<br>
>><br>
>> For TA, this is by design: if you are recording data, you want to keep<br>
>> recording even when in the background. Same goes for Measure.<br>
><br>
> Ah, should have noted exactly what I tested for each Activity. For<br>
> Turtle Art (wasn't that Turtle Blocks at some time? still confused) that<br>
> was only playback, not recording.<br>
><br>
>> For playback it should release the device.<br>
><br>
> I agree, for Turtle Art it will usually be the right thing to do when<br>
> switching to a different Activity. Jukebox OTOH would be a good example<br>
> of an Activity that should continue playback even in the background (but<br>
> close the device as soon as it's finished playing).<br>
><br>
> Sascha<br>
><br>
> --<br>
> <a href="http://sascha.silbe.org/" target="_blank">http://sascha.silbe.org/</a><br>
> <a href="http://www.infra-silbe.de/" target="_blank">http://www.infra-silbe.de/</a><br>
<br>
I see that Clock is using notify::active and then checking<br>
self.props.active. In Turtle Blocks, I had been using<br>
visibility-notify-event. Is the former recommended? More reliable?<br>
<br>
regards.<br>
<br>
-walter<br>
<br>
--<br>
Walter Bender<br>
Sugar Labs<br>
<a href="http://www.sugarlabs.org" target="_blank">http://www.sugarlabs.org</a><br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
</blockquote></div>