[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:02:22 EDT 2010


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).
>
> You mean the busy cursor.
>
> I've tried the patch you proposed.  It doesn't work.  The GTK+ event
> loop doesn't even get a chance to refresh the area under the menu
> palette before the X server collapses.  I tried adding a call to
> gtk.gdk.flush() but there was no impact.  The X server collapses within
> about a second.  Even in that time, there was no change to the cursor
> that I could see.
>
> 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

Regards,

Tomeu

>>      def __logout_activate_cb(self, menu_item):
>> +        self.window.set_cursor( gtk.gdk.Cursor(gtk.gdk.WATCH) )  # newline
>
> The "  # newline" is unnecessary.
>
> The "self.window" would refer only to the menu button on the palette,
> which is dismissed by the operation.  You should refer instead to the
> top level window.  Perhaps that is why it did nothing for me.
>
> Does it work for you?
>
> --
> James Cameron
> http://quozl.linux.org.au/
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>


More information about the Sugar-devel mailing list