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 14:07:18 +0100
commit2295ef1dc3fa012423a44be2d9c5468ae7191f0c (patch)
treef121ee8b7cfc26cd42f54f9eb3844fdb70aa10f7
parent79df63514dd0fe87968a89b153858fb320293dad (diff)
downloadpoky-2295ef1dc3fa012423a44be2d9c5468ae7191f0c.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. (Bitbake rev: b046f4316ee7f2afaa0bb723e4216714d9cb87a0) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobwidget.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py
index afcd5b8c7a..dba278c33d 100644
--- a/bitbake/lib/bb/ui/crumbs/hobwidget.py
+++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py
@@ -532,6 +532,12 @@ class HobNotebook(gtk.Notebook):
532 if search.get_editable() == True: 532 if search.get_editable() == True:
533 search.set_text("") 533 search.set_text("")
534 534
535 def set_page(self, title):
536 for child in self.pages:
537 if child.lbl.get_label() == title:
538 child.grab_focus()
539 self.set_current_page(self.page_num(child))
540
535class HobWarpCellRendererText(gtk.CellRendererText): 541class HobWarpCellRendererText(gtk.CellRendererText):
536 def __init__(self, col_number): 542 def __init__(self, col_number):
537 gtk.CellRendererText.__init__(self) 543 gtk.CellRendererText.__init__(self)