diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-08-03 18:12:32 -0700 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2011-08-03 18:19:54 -0700 |
commit | 5f079f11ca626a4a11ad728c56bde21009ddd7c8 (patch) | |
tree | 6bc887a02faeefc4138f5ebbf028006ccd28d3b5 /lib/bb/ui/hob.py | |
parent | bb2609ba00db11b445e0af1921744b725fe96065 (diff) | |
download | bitbake-5f079f11ca626a4a11ad728c56bde21009ddd7c8.tar.gz |
bb/ui/hob: be clear that the image contents are an estimate
Partially addresses [YOCTO #1263]
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'lib/bb/ui/hob.py')
-rw-r--r-- | lib/bb/ui/hob.py | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/lib/bb/ui/hob.py b/lib/bb/ui/hob.py index 5a4ac7850..a38868ff7 100644 --- a/lib/bb/ui/hob.py +++ b/lib/bb/ui/hob.py @@ -804,6 +804,14 @@ class MainWindow (gtk.Window): menubar.show_all() return menubar + + def info_button_clicked_cb(self, button): + info = "We cannot accurately predict the image contents before they are built so instead a best" + info = info + " attempt at estimating what the image will contain is listed." + dialog = CrumbsDialog(self, info, gtk.STOCK_DIALOG_INFO) + dialog.add_buttons(gtk.STOCK_CLOSE, gtk.RESPONSE_OK) + resp = dialog.run() + dialog.destroy() def create_build_gui(self): vbox = gtk.VBox(False, 12) @@ -847,11 +855,19 @@ class MainWindow (gtk.Window): ins.set_current_page(0) ins.show_all() - label = gtk.Label("Image contents:") + hbox = gtk.HBox(False, 1) + hbox.show() + label = gtk.Label("Estimated image contents:") self.model.connect("contents-changed", self.update_package_count_cb, label) label.set_property("xalign", 0.00) label.show() - vbox.pack_start(label, expand=False, fill=False, padding=6) + hbox.pack_start(label, expand=False, fill=False, padding=6) + info = gtk.Button("?") + info.set_tooltip_text("What does this mean?") + info.show() + info.connect("clicked", self.info_button_clicked_cb) + hbox.pack_start(info, expand=False, fill=False, padding=6) + vbox.pack_start(hbox, expand=False, fill=False, padding=6) con = self.contents() con.show() vbox.pack_start(con, expand=True, fill=True) @@ -873,7 +889,7 @@ class MainWindow (gtk.Window): return vbox def update_package_count_cb(self, model, count, label): - lbl = "Image contents (%s packages):" % count + lbl = "Estimated image contents (%s packages):" % count label.set_text(lbl) def contents(self): |