summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-03-23 17:22:59 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-25 12:23:33 +0100
commit63defc9bf684ff9d83a23aaeb2596f3b43910e0b (patch)
tree3b3e455a3632dc0a2261d5845da9377beba0dd63 /bitbake
parent822af52bb9ab7e825788f28a9d17a47deaf93622 (diff)
downloadpoky-63defc9bf684ff9d83a23aaeb2596f3b43910e0b.tar.gz
lib/bb/ui/crumbs/hig: sort layers in Layer Selection dialogue
The two layers which cannot be removed, meta and meta-hob, should be the first two items in the tree view. (Bitbake rev: 6e51643325611f6cfc9090dcbbff20755d09c92d) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hig.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py
index 1db93eac17..3a66e7cc3a 100644
--- a/bitbake/lib/bb/ui/crumbs/hig.py
+++ b/bitbake/lib/bb/ui/crumbs/hig.py
@@ -803,8 +803,14 @@ class LayerSelectionDialog (CrumbsDialog):
803 table_layer.attach(scroll, 0, 10, 0, 1) 803 table_layer.attach(scroll, 0, 10, 0, 1)
804 804
805 layer_store = gtk.ListStore(gobject.TYPE_STRING) 805 layer_store = gtk.ListStore(gobject.TYPE_STRING)
806 core_iter = None
806 for layer in layers: 807 for layer in layers:
807 layer_store.set(layer_store.append(), 0, layer) 808 if layer.endswith("/meta"):
809 core_iter = layer_store.prepend([layer])
810 elif layer.endswith("/meta-hob") and core_iter:
811 layer_store.insert_after(core_iter, [layer])
812 else:
813 layer_store.append([layer])
808 814
809 col1 = gtk.TreeViewColumn('Enabled') 815 col1 = gtk.TreeViewColumn('Enabled')
810 layer_tv.append_column(col1) 816 layer_tv.append_column(col1)