summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobwidget.py
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-03-12 20:55:44 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-20 15:21:33 +0000
commitdab638e150fb2af56f54f0752383965b016f4960 (patch)
treea36c1ba628b33db08fd6e3241661823557616543 /bitbake/lib/bb/ui/crumbs/hobwidget.py
parentc4017bc518d31b58e988d4b51ea9e0a33acf9bc9 (diff)
downloadpoky-dab638e150fb2af56f54f0752383965b016f4960.tar.gz
Hob: show indicators on the tabs of the Hob notebook
This patch is to show the indicators (e.g., the number of the issues) in the build details page to highlight. (From Poky rev: 2e08a8e6818b8f1df7eaac499ebc3a5854efe7be) (Bitbake rev: f2eead1bc20c48b2f36e880a879a5a50e6e6567b) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobwidget.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobwidget.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py
index 8fa663c78a..2c3d8311d1 100644
--- a/bitbake/lib/bb/ui/crumbs/hobwidget.py
+++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py
@@ -619,6 +619,20 @@ class HobNotebook(gtk.VBox):
619 619
620 self.tb.show() 620 self.tb.show()
621 621
622 def show_indicator_icon(self, title, number):
623 for i, child in enumerate(self.tabbar.children):
624 if child["toggled_page"] == -1:
625 continue
626 if child["title"] == title:
627 self.tabbar.show_indicator_icon(i, number)
628
629 def hide_indicator_icon(self, title):
630 for i, child in enumerate(self.tabbar.children):
631 if child["toggled_page"] == -1:
632 continue
633 if child["title"] == title:
634 self.tabbar.hide_indicator_icon(i)
635
622 def tab_switched_cb(self, widget, page): 636 def tab_switched_cb(self, widget, page):
623 self.notebook.set_current_page(page) 637 self.notebook.set_current_page(page)
624 638