From f1c35a6ad39eaf8efbf20dab1441f52613bb860b Mon Sep 17 00:00:00 2001 From: Liming An Date: Tue, 20 Mar 2012 18:51:54 +0800 Subject: [PATCH] Hob: fixed the tabbar search entry retaining focus when user has clicked off it issue Add reset focus code to fixed the search entry retaining focus issue (From Poky rev: 75969f92af4b0aae25dcaa3321f835dd729f4bf9) (Bitbake rev: 0531730b255f41b2804bcd322e10c52cbf13537a) Signed-off-by: Liming An Signed-off-by: Shane Wang Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobwidget.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py index 0bb83d78f5..4b0a0cf808 100644 --- a/bitbake/lib/bb/ui/crumbs/hobwidget.py +++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py @@ -344,6 +344,7 @@ class HobTabBar(gtk.DrawingArea): and (child["y"] < y) and (y < child["y"] + self.tab_height): self.current_child = child result = True + self.grab_focus() break # check the blank area is focus in or not