<div dir="ltr">On 5 August 2013 17:47, Gonzalo Odiard <span dir="ltr"><<a href="mailto:gonzalo@laptop.org" target="_blank">gonzalo@laptop.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div class="im">On Mon, Aug 5, 2013 at 12:36 PM, Manuel Quiñones <span dir="ltr"><<a href="mailto:manuq@laptop.org" target="_blank">manuq@laptop.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the hints Daniel,<br>
<br>
2013/8/3 Daniel Narvaez <<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>>:<br>
<div>> On 3 August 2013 02:26, Manuel Quiñones <<a href="mailto:manuq@laptop.org" target="_blank">manuq@laptop.org</a>> wrote:<br>
>><br>
>><br>
>> The problem is: how could the activity process wait for the datastore<br>
>> write to finish? If the WnckWindow close is called [1], the activity<br>
>> process ends. Unless you connect a callback to 'delete-event' [2] and<br>
>> handle the destroy() yourself [3] . Which is what GTK activities do<br>
>> to store before closing.<br>
><br>
><br>
> The shell currently does<br>
><br>
> activity.get_window().close()<br>
><br>
> We could<br>
><br>
> 1 Add a close method to Activity directly. That would emit a close signal<br>
> and call get_window().close() only if the signal didn't return True.<br>
<br></div></blockquote><div><br></div></div><div>Activity class already have a close method, and deal with saving.</div><div><br></div><div>Or are you talking about the web activity?</div></div></div></div></blockquote><div>
<br></div><div>Talking about Activity class in the shell.<br></div></div></div></div>