summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-03-21 11:19:51 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-22 14:40:39 +0000
commitdf20012654672a5fc09d903221e23b971e0d21b9 (patch)
treec76ec79e3cd8f2c3f7438809ab52f5a89f9f3cc8 /bitbake
parent31124e675bd0a444b0d162a67f9623f9d1e7965a (diff)
downloadpoky-df20012654672a5fc09d903221e23b971e0d21b9.tar.gz
Hob: Move "Create your own image" to the bottom of image list
Move "Create your own image" item to the bottom of base image list. Besides, remove an un-used hob list entry. This fixes [YOCTO #2104] (From Poky rev: f215ce518ad644ca4747ae17279db4b82d0c715d) (Bitbake rev: 7e00723a6508023ffbefed2c2de1bc9c55564faa) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hoblistmodel.py3
-rw-r--r--bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py5
2 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
index 74b2a17e01..61f2911f89 100644
--- a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
+++ b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
@@ -412,7 +412,7 @@ class RecipeListModel(gtk.ListStore):
412 """ 412 """
413 (COL_NAME, COL_DESC, COL_LIC, COL_GROUP, COL_DEPS, COL_BINB, COL_TYPE, COL_INC, COL_IMG, COL_INSTALL, COL_PN) = range(11) 413 (COL_NAME, COL_DESC, COL_LIC, COL_GROUP, COL_DEPS, COL_BINB, COL_TYPE, COL_INC, COL_IMG, COL_INSTALL, COL_PN) = range(11)
414 414
415 __dummy_image__ = "Start from scratch" 415 __dummy_image__ = "Create your own image"
416 416
417 __gsignals__ = { 417 __gsignals__ = {
418 "recipe-selection-changed" : (gobject.SIGNAL_RUN_LAST, 418 "recipe-selection-changed" : (gobject.SIGNAL_RUN_LAST,
@@ -434,7 +434,6 @@ class RecipeListModel(gtk.ListStore):
434 gobject.TYPE_BOOLEAN, 434 gobject.TYPE_BOOLEAN,
435 gobject.TYPE_BOOLEAN, 435 gobject.TYPE_BOOLEAN,
436 gobject.TYPE_STRING, 436 gobject.TYPE_STRING,
437 gobject.TYPE_STRING,
438 gobject.TYPE_STRING) 437 gobject.TYPE_STRING)
439 438
440 """ 439 """
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
index 076b2c0064..b0f0213091 100644
--- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
+++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
@@ -330,12 +330,15 @@ class ImageConfigurationPage (HobPage):
330 # append and set active 330 # append and set active
331 while it: 331 while it:
332 path = image_model.get_path(it) 332 path = image_model.get_path(it)
333 it = image_model.iter_next(it)
333 image_name = image_model[path][recipe_model.COL_NAME] 334 image_name = image_model[path][recipe_model.COL_NAME]
335 if image_name == self.builder.recipe_model.__dummy_image__:
336 continue
334 self.image_combo.append_text(image_name) 337 self.image_combo.append_text(image_name)
335 if image_name == selected_image: 338 if image_name == selected_image:
336 active = cnt 339 active = cnt
337 it = image_model.iter_next(it)
338 cnt = cnt + 1 340 cnt = cnt + 1
341 self.image_combo.append_text(self.builder.recipe_model.__dummy_image__)
339 self._image_combo_connect_signal() 342 self._image_combo_connect_signal()
340 343
341 self.image_combo.set_active(-1) 344 self.image_combo.set_active(-1)