summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-06-14 20:22:25 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-14 13:55:01 +0100
commitb046f4316ee7f2afaa0bb723e4216714d9cb87a0 (patch)
tree4cecf9a4bfd5a5d1df45b6e8ccf30e481b1f46e8
parentd2d65335e8fc2417ebd3910f645cc00a4abfbeaa (diff)
downloadbitbake-b046f4316ee7f2afaa0bb723e4216714d9cb87a0.tar.gz
Hob: fixed an issue about no 'set_page' function in hob failed page show
Due in mistake deletion in previous patches, if building failed, will report the error of no 'set_page', so add that function. Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/ui/crumbs/hobwidget.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/ui/crumbs/hobwidget.py b/lib/bb/ui/crumbs/hobwidget.py
index afcd5b8c7..dba278c33 100644
--- a/lib/bb/ui/crumbs/hobwidget.py
+++ b/lib/bb/ui/crumbs/hobwidget.py
@@ -532,6 +532,12 @@ class HobNotebook(gtk.Notebook):
if search.get_editable() == True:
search.set_text("")
+ def set_page(self, title):
+ for child in self.pages:
+ if child.lbl.get_label() == title:
+ child.grab_focus()
+ self.set_current_page(self.page_num(child))
+
class HobWarpCellRendererText(gtk.CellRendererText):
def __init__(self, col_number):
gtk.CellRendererText.__init__(self)