diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-07-25 07:37:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-06 13:02:24 +0100 |
commit | 116219ce09c63dfdbf1f57563c6d0b400bd96823 (patch) | |
tree | 9b315ffbcd00c7054eca7da3ec1a27343e63224c /bitbake/lib/bb/ui/crumbs/hoblistmodel.py | |
parent | 564c83be5ee1f69e6d097c20dbfa3a76cccc0aa0 (diff) | |
download | poky-116219ce09c63dfdbf1f57563c6d0b400bd96823.tar.gz |
bitbake: hob: make changes in order to permit from UI to edit an image after saving it
Added the image name to the list model, in order to show the image name as
the user named it.
[YOCTO #4193]
(Bitbake rev: 0aba493103d1fe50026a47db16529febbbbd77a2)
Signed-off-by: Cristiana Voicu <cristiana.voicu@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 | 28 |
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 | """ |