From 1faa0c538a46a8ac189b068ddc445889dc5c628b Mon Sep 17 00:00:00 2001 From: Shane Wang Date: Wed, 29 Feb 2012 22:15:15 +0800 Subject: crumbs/hig: tweak UI and layout of LayerSelectionDialog Several minor tweaks for appearance: * Try to rework the labels so that the English flows better * Fix spacing * Remove the separator - it's not needed (Bitbake rev: 53c5807c38e97d2e44a6f5c48449178b8b6e6261) Signed-off-by: Joshua Lock Signed-off-by: Shane Wang Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hig.py | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py index 6776b3dd32..9b96d8de4d 100644 --- a/bitbake/lib/bb/ui/crumbs/hig.py +++ b/bitbake/lib/bb/ui/crumbs/hig.py @@ -947,9 +947,9 @@ class LayerSelectionDialog (CrumbsDialog): self.vbox.pack_start(hbox_top, expand=False, fill=False) if self.split_model: - label = self.gen_label_widget("Select Layers:\n(Available layers under '${COREBASE}/layers/' directory)") + label = self.gen_label_widget("Select Layers:\n(Available layers under '${COREBASE}/layers/' directory)") else: - label = self.gen_label_widget("Select Layers:") + label = self.gen_label_widget("Select Layers:") hbox_top.pack_start(label, expand=False, fill=False) tooltip = "Layer is a collection of bb files and conf files" @@ -960,20 +960,11 @@ class LayerSelectionDialog (CrumbsDialog): layer_widget, self.layer_store = self.gen_layer_widget(self.split_model, self.layers, self.all_layers, self, None) layer_widget.set_size_request(-1, 180) - self.vbox.pack_start(layer_widget, expand=True, fill=True) - separator = gtk.HSeparator() - self.vbox.pack_start(separator, False, True, 5) - separator.show() - - hbox_button = gtk.HBox() - self.vbox.pack_end(hbox_button, expand=False, fill=False) - hbox_button.show() - - label = self.gen_label_widget("'meta' is Core layer for Yocto images\n" - "Please do not remove it") - hbox_button.pack_start(label, expand=False, fill=False) + label = self.gen_label_widget("Note: 'meta' is the Core layer for Yocto images please do not remove it.") + label.show() + self.vbox.pack_end(label, expand=False, fill=False) self.show_all() -- cgit v1.2.3-54-g00ecf