From patchwork Sat Feb 25 01:34:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 6/6] crumbs/hig: tweak UI and layout of LayerSelectionDialog Date: Sat, 25 Feb 2012 01:34:43 -0000 From: Joshua Lock X-Patchwork-Id: 22025 Message-Id: <2f12aba7bb8438c9dd976972f79524dc143dbe7a.1330133412.git.josh@linux.intel.com> To: bitbake-devel@lists.openembedded.org 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 Signed-off-by: Joshua Lock --- lib/bb/ui/crumbs/hig.py | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/lib/bb/ui/crumbs/hig.py b/lib/bb/ui/crumbs/hig.py index abc4a55..bd611bc 100644 --- a/lib/bb/ui/crumbs/hig.py +++ b/lib/bb/ui/crumbs/hig.py @@ -518,9 +518,9 @@ class LayerSelectionDialog (CrumbsDialog): self.vbox.pack_start(hbox_top, expand=False, fill=False) if self.split_model: - label = HobWidget.gen_label_widget("Select Layers:\n(Available layers under '${COREBASE}/layers/' directory)") + label = HobWidget.gen_label_widget("Select Layers:\n(Available layers under '${COREBASE}/layers/' directory)") else: - label = HobWidget.gen_label_widget("Select Layers:") + label = HobWidget.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" @@ -534,17 +534,9 @@ class LayerSelectionDialog (CrumbsDialog): 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 = HobWidget.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 = HobWidget.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()