diff options
author | Liming An <limingx.l.an@intel.com> | 2012-04-09 22:13:33 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-11 00:02:21 +0100 |
commit | c0c81647dc5e72fe3abb1fb3b65a978aa4b226a5 (patch) | |
tree | 6d7dfc69959b729dfbfd1876ecc70c43107dc080 /lib/bb/ui/crumbs/hoblistmodel.py | |
parent | c9eed04c6275ef2c694f89e047f85c7de76f89b6 (diff) | |
download | bitbake-c0c81647dc5e72fe3abb1fb3b65a978aa4b226a5.tar.gz |
Hob: add fadeout display effection for package view include page
[YOCTO #2100]
Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui/crumbs/hoblistmodel.py')
-rw-r--r-- | lib/bb/ui/crumbs/hoblistmodel.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/bb/ui/crumbs/hoblistmodel.py b/lib/bb/ui/crumbs/hoblistmodel.py index 523a59162..f5e37402e 100644 --- a/lib/bb/ui/crumbs/hoblistmodel.py +++ b/lib/bb/ui/crumbs/hoblistmodel.py @@ -428,6 +428,19 @@ class PackageListModel(gtk.TreeStore): self.selection_change_notification() + """ + Resync the state of included items to a backup column before performing the fadeout visible effect + """ + def resync_fadeout_column(self, model_first_iter=None): + it = model_first_iter + while it: + active = self.get_value(it, self.COL_INC) + self.set(it, self.COL_FADE_INC, active) + if self.iter_has_child(it): + self.resync_fadeout_column(self.iter_children(it)) + + it = self.iter_next(it) + # # RecipeListModel # @@ -509,12 +522,12 @@ class RecipeListModel(gtk.ListStore): Create, if required, and return a filtered gtk.TreeModelSort containing only the items which are items specified by filter """ - def tree_model(self, filter, excluded_items_head=False): + def tree_model(self, filter, excluded_items_ahead=False): model = self.filter_new() model.set_visible_func(self.tree_model_filter, filter) sort = gtk.TreeModelSort(model) - if excluded_items_head: + if excluded_items_ahead: sort.set_default_sort_func(self.exclude_item_sort_func) else: sort.set_sort_column_id(RecipeListModel.COL_NAME, gtk.SORT_ASCENDING) |