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

Shane Wang shane.wang at intel.com
Tue Mar 20 14:41:12 UTC 2012


From: Liming An <limingx.l.an at intel.com>

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

Signed-off-by: Liming An <limingx.l.an at intel.com>
Signed-off-by: Shane Wang <shane.wang at intel.com>
---
 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
-- 
1.7.6





More information about the bitbake-devel mailing list