lib/bb/ui/crumbs/hig: disable removal of meta-hob layer

The Hob GUI requires the meta-hob layer to function so prevent its removal
as we do with the core meta layer.

(From Poky rev: a64d71e1e4475236e286cb20dde29c4d099d3693)

(Bitbake rev: 431624678025b3d3fe04f1c6e8fc50820b3129fb)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Lock
2012-03-21 18:55:33 -07:00
committed by Richard Purdie
parent 1f3a6379c5
commit 0ac021e8b9

View File

@@ -886,7 +886,7 @@ class LayerSelectionDialog (CrumbsDialog):
# Trailing slashes are uncommon in bblayers.conf but confuse os.path.basename
path.rstrip('/')
name = os.path.basename(path)
if name == "meta":
if name == "meta" or name == "meta-hob":
cell.set_sensitive(False)
cell.set_property('pixbuf', None)
cell.set_property('mode', gtk.CELL_RENDERER_MODE_INERT)
@@ -907,6 +907,8 @@ class LayerSelectionDialog (CrumbsDialog):
name = os.path.basename(path)
if name == "meta":
cell.set_property('markup', "<b>Core layer for images: it cannot be removed</b>\n%s" % path)
elif name == "meta-hob":
cell.set_property('markup', "<b>Core layer for Hob: it cannot be removed</b>\n%s" % path)
else:
cell.set_property('text', path)