Excerpts from godiard's message of 2011-11-07 13:06:45 +0100:
> From: Gonzalo Odiard <godi...@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/

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to