From patchwork Tue Mar 20 14:41:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 11/11] Hob: fixed the tabbar search entry retaining focus when user has clicked off it issue Date: Tue, 20 Mar 2012 14:41:12 -0000 From: Shane Wang X-Patchwork-Id: 23889 Message-Id: <75969f92af4b0aae25dcaa3321f835dd729f4bf9.1332254194.git.shane.wang@intel.com> To: bitbake-devel@lists.openembedded.org From: Liming An Add reset focus code to fixed the search entry retaining focus issue Signed-off-by: Liming An Signed-off-by: Shane Wang --- bitbake/lib/bb/ui/crumbs/hobwidget.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py index 0bb83d7..4b0a0cf 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