Patchwork [bitbake-devel,2/5] Hob: fix entry of recipe page can't be edited in case after clicked clear button

login
register
mail settings
Submitter An, LimingX L
Date June 4, 2012, 10:52 a.m.
Message ID <535a0a1719495d21ca0e89a04de41e19e686d973.1338806537.git.limingx.l.an@intel.com>
Download mbox | patch
Permalink /patch/29183/
State New
Headers show

Comments

An, LimingX L - June 4, 2012, 10:52 a.m.
cancel some inviable code and fixed this issue

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

Patch

diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py
index bd9e2e2..afcd5b8 100644
--- a/bitbake/lib/bb/ui/crumbs/hobwidget.py
+++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py
@@ -529,14 +529,8 @@  class HobNotebook(gtk.Notebook):
         self.reset_entry(search)
 
     def set_search_entry_clear_cb(self, search, icon_pos, event):
-        self.reset_entry(search)
-
-    def set_page(self, title):
-        for child in self.tabbar.children:
-            if child["title"] == title:
-                self.tabbar.current_child = child
-                self.tabbar.grab_focus()
-                self.notebook.set_current_page(child["toggled_page"])
+        if search.get_editable() == True:
+            search.set_text("")
 
 class HobWarpCellRendererText(gtk.CellRendererText):
     def __init__(self, col_number):