[sugar] [PATCH] (Incomplete) Activity Launch Feedback

Eben Eliason eben.eliason at gmail.com
Fri Apr 18 21:49:16 EDT 2008


A small update this time.  I rewrote the launchbox.py file.  This
version uses a simple CanvasBox, eliminating the need for a complex
layout class for what amounts to a centered icon.  I also eliminated
some old code that was leftover from my early tests.  Finally, I
implemented the suspend/resume methods for the class, so that the icon
only pulses when it's visible.  Note that the suspend/resume methods
require a small patch to HomeWindow.py, which calls them, but I'm not
going to resend the entire patch to change those two lines at the
moment...I just wanted those looking over this work in progress to see
the cleaner launchbox code.

- Eben

On Fri, Apr 18, 2008 at 1:21 PM, Eben Eliason <eben.eliason at gmail.com> wrote:
> Here's my second pass at the launcher patch.  This version changes
>  little in the actual behavior of the code, but substantially cleans up
>  the code itself.  I pulled all of the "pending_activity" code out,
>  simplifying the model a good deal, as we no longer need it with the
>  new Home design.  I also re-factored the flow of the launch (and
>  launch failed) notifications, unifying so that everything occurs first
>  in the model which then sends signals to the view, rather than having
>  the view call the model in some cases and vice versa, which led to
>  inconsistencies.
>
>  These changes also made the calls to notify_launch in the shell
>  cleaner, passing the home_activity object instead of several other
>  parameters, which in turn cleaned up the call stack for
>  setting/changing the launching activity icon.  I'm much more satisfied
>  here.
>
>  The main problem that remains is that the launching activity feedback
>  is still mostly maintained within the view.  The model remains
>  unchanged from before.  We need to clean this up so that a launching
>  activity (which doesn't yet have a window) can still be considered
>  active in the model, so that the view always properly reflects the
>  model instead of tiptoeing around it to achieve the launching feedback
>  effect.
>
>  Thoughts on how to best achieve this goal are welcomed, as it gets a
>  bit more intimate with the window management business that I'm
>  unfamiliar with.
>
>  - Eben
>
>
>
>
>  On Thu, Apr 17, 2008 at 1:19 AM, Eben Eliason <eben.eliason at gmail.com> wrote:
>  > This patch is mainly for Marco, who plans to help me finish and clean
>  >  up the new activity launcher.  It's currently full of TODOs, comments,
>  >  temporary hacks, etc, but it's in a "nearly complete" state inasmuch
>  >  as it will run smoothly despite the partially unfinished and poorly
>  >  styled implementation.
>  >
>  >  Also, launchbox.py is a new file to be added to src/view/home/ in
>  >  addition to applying the patch, and of course you'll need to edit the
>  >  Makefile to include it as well.
>  >
>  >  Marco, take a peek at the various comments I've made; I look forward
>  >  to hearing your thoughts on the remainder.  It's looking good so far.
>  >
>  >  - Eben
>  >
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: launchbox.py
Type: text/x-python
Size: 3161 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/sugar/attachments/20080418/149932a4/attachment.py 


More information about the Sugar mailing list