From patchwork Thu Jun 14 12:22:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 1/2] Hob: fixed an issue about no 'set_page' function in hob failed page show Date: Thu, 14 Jun 2012 12:22:25 -0000 From: An, LimingX L X-Patchwork-Id: 29831 Message-Id: To: bitbake-devel@lists.openembedded.org 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 --- bitbake/lib/bb/ui/crumbs/hobwidget.py | 6 ++++++ 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 afcd5b8..dba278c 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): 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)