Patchwork [bitbake-devel,11/11] Hob: fixed the tabbar search entry retaining focus when user has clicked off it issue

login
register
mail settings
Submitter Shane Wang
Date March 20, 2012, 2:41 p.m.
Message ID <75969f92af4b0aae25dcaa3321f835dd729f4bf9.1332254194.git.shane.wang@intel.com>
Download mbox | patch
Permalink /patch/23889/
State New
Headers show

Comments

Shane Wang - March 20, 2012, 2:41 p.m.
From: Liming An <limingx.l.an@intel.com>

Add reset focus code to fixed the search entry retaining focus issue

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Shane Wang <shane.wang@intel.com>
---
 bitbake/lib/bb/ui/crumbs/hobwidget.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

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