diff options
author | Shane Wang <shane.wang@intel.com> | 2012-03-12 20:55:44 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-20 15:21:33 +0000 |
commit | dab638e150fb2af56f54f0752383965b016f4960 (patch) | |
tree | a36c1ba628b33db08fd6e3241661823557616543 /bitbake/lib/bb/ui/crumbs/builddetailspage.py | |
parent | c4017bc518d31b58e988d4b51ea9e0a33acf9bc9 (diff) | |
download | poky-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/builddetailspage.py')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builddetailspage.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builddetailspage.py b/bitbake/lib/bb/ui/crumbs/builddetailspage.py index 63d2c7b329..7a5cfe67ff 100755 --- a/bitbake/lib/bb/ui/crumbs/builddetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/builddetailspage.py | |||
@@ -37,6 +37,8 @@ class BuildDetailsPage (HobPage): | |||
37 | def __init__(self, builder): | 37 | def __init__(self, builder): |
38 | super(BuildDetailsPage, self).__init__(builder, "Building ...") | 38 | super(BuildDetailsPage, self).__init__(builder, "Building ...") |
39 | 39 | ||
40 | self.num_of_issues = 0 | ||
41 | |||
40 | # create visual elements | 42 | # create visual elements |
41 | self.create_visual_elements() | 43 | self.create_visual_elements() |
42 | 44 | ||
@@ -80,6 +82,14 @@ class BuildDetailsPage (HobPage): | |||
80 | self.back_button.connect("clicked", self.back_button_clicked_cb) | 82 | self.back_button.connect("clicked", self.back_button_clicked_cb) |
81 | self.button_box.pack_start(self.back_button, expand=False, fill=False) | 83 | self.button_box.pack_start(self.back_button, expand=False, fill=False) |
82 | 84 | ||
85 | def show_issues(self): | ||
86 | self.num_of_issues += 1 | ||
87 | self.notebook.show_indicator_icon("Issues", self.num_of_issues) | ||
88 | |||
89 | def reset_issues(self): | ||
90 | self.num_of_issues = 0 | ||
91 | self.notebook.hide_indicator_icon("Issues") | ||
92 | |||
83 | def _remove_all_widget(self): | 93 | def _remove_all_widget(self): |
84 | children = self.vbox.get_children() or [] | 94 | children = self.vbox.get_children() or [] |
85 | for child in children: | 95 | for child in children: |