[Sugar-devel] [PATCH sugar-toolkit] Display spinner cursor when saving after closing the activity, OLPC #11691

Simon Schampijer simon at schampijer.de
Fri Jun 1 10:14:51 EDT 2012


On 05/30/2012 11:54 AM, Simon Schampijer wrote:
> Signed-off-by: Simon Schampijer<simon at laptop.org>
> Reviewed-by: Daniel Drake<dsd at laptop.org>
> Tested-by: Manuel Quiñones<manuq at laptop.org>
> ---
>   src/sugar/activity/activity.py |    1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py
> index fdf9827..34e9729 100644
> --- a/src/sugar/activity/activity.py
> +++ b/src/sugar/activity/activity.py
> @@ -897,6 +897,7 @@ class Activity(Window, gtk.Container):
>           if not self.can_close():
>               return
>
> +        self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))
>           self.emit('_closing')
>
>           if not self._closing:

I pushed those two now, as I have been gathering positive feedback from 
several sides.

Regards,
    Simon

PS: longer run we should check why it takes long to save and if still 
needed look for other ways than a spinning cursor (/me hints at touch 
interfaces)


More information about the Sugar-devel mailing list