diff options
author | Liming An <limingx.l.an@intel.com> | 2012-09-05 19:13:48 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-07 12:13:53 +0100 |
commit | 95ae927dfc8cbb0b1b8a60edb5af7c448cbc9a9e (patch) | |
tree | e9328def17978f716d268b838f5730616fa0855c /bitbake/lib/bb/ui/crumbs/hoblistmodel.py | |
parent | a32f551c968dee86a801d8421e19ed7da92e6ac9 (diff) | |
download | poky-95ae927dfc8cbb0b1b8a60edb5af7c448cbc9a9e.tar.gz |
bitbake: Hob: change view of 'recipes' and 'packages' tables as ui design
changed the order of task tables,
cancel the 'description' column,
add the binb total number indicator, and so on
[YOCTO 2195]
(Bitbake rev: 6dc3263d60a6d35f9eebfcdbc2665201ee40b953)
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.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py index 3de9e5bb56..10b7c55251 100644 --- a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py +++ b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py | |||
@@ -521,17 +521,24 @@ class RecipeListModel(gtk.ListStore): | |||
521 | val2 = model.get_value(iter2, RecipeListModel.COL_INC) | 521 | val2 = model.get_value(iter2, RecipeListModel.COL_INC) |
522 | return ((val1 == True) and (val2 == False)) | 522 | return ((val1 == True) and (val2 == False)) |
523 | 523 | ||
524 | def include_item_sort_func(self, model, iter1, iter2): | ||
525 | val1 = model.get_value(iter1, RecipeListModel.COL_INC) | ||
526 | val2 = model.get_value(iter2, RecipeListModel.COL_INC) | ||
527 | return ((val1 == False) and (val2 == True)) | ||
528 | |||
524 | """ | 529 | """ |
525 | Create, if required, and return a filtered gtk.TreeModelSort | 530 | Create, if required, and return a filtered gtk.TreeModelSort |
526 | containing only the items which are items specified by filter | 531 | containing only the items which are items specified by filter |
527 | """ | 532 | """ |
528 | def tree_model(self, filter, excluded_items_ahead=False): | 533 | def tree_model(self, filter, excluded_items_ahead=False, included_items_ahead=True): |
529 | model = self.filter_new() | 534 | model = self.filter_new() |
530 | model.set_visible_func(self.tree_model_filter, filter) | 535 | model.set_visible_func(self.tree_model_filter, filter) |
531 | 536 | ||
532 | sort = gtk.TreeModelSort(model) | 537 | sort = gtk.TreeModelSort(model) |
533 | if excluded_items_ahead: | 538 | if excluded_items_ahead: |
534 | sort.set_default_sort_func(self.exclude_item_sort_func) | 539 | sort.set_default_sort_func(self.exclude_item_sort_func) |
540 | elif included_items_ahead: | ||
541 | sort.set_default_sort_func(self.include_item_sort_func) | ||
535 | else: | 542 | else: |
536 | sort.set_sort_column_id(RecipeListModel.COL_NAME, gtk.SORT_ASCENDING) | 543 | sort.set_sort_column_id(RecipeListModel.COL_NAME, gtk.SORT_ASCENDING) |
537 | sort.set_default_sort_func(None) | 544 | sort.set_default_sort_func(None) |