summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-04-09 22:13:33 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-11 00:04:44 +0100
commite1d463eb3931014427a1d108944eaa55f21880c0 (patch)
tree3204c9042ee2822db9a02bcf73967ff433558808 /bitbake/lib/bb/ui/crumbs/hoblistmodel.py
parenta46aafb8b27bd86d046385a569deee6b4c9b8bb6 (diff)
downloadpoky-e1d463eb3931014427a1d108944eaa55f21880c0.tar.gz
Hob: add fadeout display effection for package view include page
[YOCTO #2100] (Bitbake rev: c0c81647dc5e72fe3abb1fb3b65a978aa4b226a5) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hoblistmodel.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hoblistmodel.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
index 523a591620..f5e37402eb 100644
--- a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
+++ b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
@@ -428,6 +428,19 @@ class PackageListModel(gtk.TreeStore):
428 428
429 self.selection_change_notification() 429 self.selection_change_notification()
430 430
431 """
432 Resync the state of included items to a backup column before performing the fadeout visible effect
433 """
434 def resync_fadeout_column(self, model_first_iter=None):
435 it = model_first_iter
436 while it:
437 active = self.get_value(it, self.COL_INC)
438 self.set(it, self.COL_FADE_INC, active)
439 if self.iter_has_child(it):
440 self.resync_fadeout_column(self.iter_children(it))
441
442 it = self.iter_next(it)
443
431# 444#
432# RecipeListModel 445# RecipeListModel
433# 446#
@@ -509,12 +522,12 @@ class RecipeListModel(gtk.ListStore):
509 Create, if required, and return a filtered gtk.TreeModelSort 522 Create, if required, and return a filtered gtk.TreeModelSort
510 containing only the items which are items specified by filter 523 containing only the items which are items specified by filter
511 """ 524 """
512 def tree_model(self, filter, excluded_items_head=False): 525 def tree_model(self, filter, excluded_items_ahead=False):
513 model = self.filter_new() 526 model = self.filter_new()
514 model.set_visible_func(self.tree_model_filter, filter) 527 model.set_visible_func(self.tree_model_filter, filter)
515 528
516 sort = gtk.TreeModelSort(model) 529 sort = gtk.TreeModelSort(model)
517 if excluded_items_head: 530 if excluded_items_ahead:
518 sort.set_default_sort_func(self.exclude_item_sort_func) 531 sort.set_default_sort_func(self.exclude_item_sort_func)
519 else: 532 else:
520 sort.set_sort_column_id(RecipeListModel.COL_NAME, gtk.SORT_ASCENDING) 533 sort.set_sort_column_id(RecipeListModel.COL_NAME, gtk.SORT_ASCENDING)