[Sugar-devel] [PATCH] Shutdown and Logout menu items should activate the buzzy cursor (SL#2151)
Tomeu Vizoso
tomeu at sugarlabs.org
Fri Sep 10 04:19:45 EDT 2010
On Fri, Sep 10, 2010 at 10:15, James Cameron <quozl at laptop.org> wrote:
> On Fri, Sep 10, 2010 at 10:02:22AM +0200, Tomeu Vizoso wrote:
>> On Wed, Sep 8, 2010 at 01:39, James Cameron <quozl at laptop.org> wrote:
>> > On Wed, Sep 08, 2010 at 08:10:27AM +0530, Anurag Chowdhury wrote:
>> >> Shutdown (and Logout) menu items should activate the buzzy cursor (or
>> >> provide some other visual feedback, perhaps dimming/locking the UI
>> >> from use).
>> >
>> > On what platform do you see a delay between releasing the mouse button
>> > and the X server terminating, and what amount of delay occurs?
>>
>> There's some info from Gary in the original bug report:
>> http://bugs.sugarlabs.org/ticket/2151
>
> Ah, right. I see from the bug report that the problem only occurs with
> many activities open. That wasn't mentioned in the patch commit
> message.
Yup, have spent some minutes on this and this approach indeed should
work. It should be easily reproducible anywhere by inserting a "import
time; time.sleep(10)" as the first line in an activity's write_file
method. The shell will wait until all activities have saved their
state before actually shutting down.
As James said, the cursor needs to be set in the appropriate window,
in this case it's the desktop window which is accessible by:
from jarabe.desktop import homewindow
homewindow.get_instance()
Seems to work fine here.
Regards,
Tomeu
> --
> James Cameron
> http://quozl.linux.org.au/
>
More information about the Sugar-devel
mailing list