summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hoblistmodel.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hoblistmodel.py28
1 files changed, 19 insertions, 9 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
index d8f3256e10..34ff76a9d2 100644
--- a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
+++ b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
@@ -678,15 +678,8 @@ class RecipeListModel(gtk.ListStore):
678 self.clear() 678 self.clear()
679 679
680 # dummy image for prompt 680 # dummy image for prompt
681 self.set(self.append(), self.COL_NAME, self.__custom_image__, 681 self.set_in_list(self.__custom_image__, "Use 'Edit image recipe' to customize recipes and packages " \
682 self.COL_DESC, "Use 'Edit image recipe' to customize recipes and packages " \ 682 "to be included in your image ")
683 "to be included in your image ",
684 self.COL_LIC, "", self.COL_GROUP, "",
685 self.COL_DEPS, "", self.COL_BINB, "",
686 self.COL_TYPE, "image", self.COL_INC, False,
687 self.COL_IMG, False, self.COL_INSTALL, "", self.COL_PN, self.__custom_image__,
688 self.COL_SUMMARY, "", self.COL_VERSION, "", self.COL_REVISION, "",
689 self.COL_HOMEPAGE, "", self.COL_BUGTRACKER, "")
690 683
691 for item in event_model["pn"]: 684 for item in event_model["pn"]:
692 name = item 685 name = item
@@ -732,6 +725,23 @@ class RecipeListModel(gtk.ListStore):
732 self.pn_path[pn] = path 725 self.pn_path[pn] = path
733 it = self.iter_next(it) 726 it = self.iter_next(it)
734 727
728 def set_in_list(self, item, desc):
729 self.set(self.append(), self.COL_NAME, item,
730 self.COL_DESC, desc,
731 self.COL_LIC, "", self.COL_GROUP, "",
732 self.COL_DEPS, "", self.COL_BINB, "",
733 self.COL_TYPE, "image", self.COL_INC, False,
734 self.COL_IMG, False, self.COL_INSTALL, "", self.COL_PN, item,
735 self.COL_SUMMARY, "", self.COL_VERSION, "", self.COL_REVISION, "",
736 self.COL_HOMEPAGE, "", self.COL_BUGTRACKER, "")
737 self.pn_path = {}
738 it = self.get_iter_first()
739 while it:
740 pn = self.get_value(it, self.COL_NAME)
741 path = self.get_path(it)
742 self.pn_path[pn] = path
743 it = self.iter_next(it)
744
735 """ 745 """
736 Update the model, send out the notification. 746 Update the model, send out the notification.
737 """ 747 """