[Sugar-devel] [PATCH] Start filtered activity with keyboard

Gonzalo Odiard godiard at sugarlabs.org
Tue Dec 6 11:06:19 EST 2011


I can't reach to a agreement with Simon about how display to the user he
can start the activity selected.
If anybody have a good idea is welcomed.
I think starting the filtered activity is a good think to have,
but without resolving this issue, does not have sense spending more time on
this.

Gonzalo

On Mon, Nov 28, 2011 at 12:10 PM, Sascha Silbe <silbe at activitycentral.com>wrote:

> Excerpts from godiard's message of 2011-11-07 13:06:45 +0100:
> > From: Gonzalo Odiard <godiard at gmail.com>
> >
> > This patch complement the filter functionality in the home view.
> > If only one activity is selected, Return key start the activity.
>
> Nice one. Both Return (default action, i.e. resume latest) and
> Alt-Return (alternate action, i.e. Start New) work as expected.
>
> The functionality is good enough for a first iteration IMO. We can land
> further enhancements (like choosing from multiple matches) later,
> preferably after we got rid of hippo-canvas.
>
>
> [src/jarabe/desktop/favoritesview.py]
> > +    def start_selected_activity(self):
> > +        if len(self._filtered_icons) == 1:
> > +            self._filtered_icons[0]._activate()
>
> This uses private API of ActivityIcon, which pylint rightfully complains
> about. Just making ActivityIcon._activate() public isn't quite the
> right answer, as _activate() interacts with the associated Palette. The
> latter code should move to __palette_activate_cb() first.
>
> Sascha
>
> --
> http://sascha.silbe.org/
> http://www.infra-silbe.de/
>



-- 
Gonzalo Odiard
SugarLabs Argentina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20111206/43f60745/attachment.html>


More information about the Sugar-devel mailing list