summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobwidget.py
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-04-01 13:36:25 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-02 17:57:07 +0100
commit0d47a7d8e8b50fbf0ed6ec8f3a8b95a11c067804 (patch)
tree42e0cc581a98083c1baa0cac699846e93d43bdd9 /bitbake/lib/bb/ui/crumbs/hobwidget.py
parentb5b1592dd31fb02dbdf81f96ec559d9b9fafea79 (diff)
downloadpoky-0d47a7d8e8b50fbf0ed6ec8f3a8b95a11c067804.tar.gz
bitbake: hob: giving focus to the search field loses the table sorting
Giving focus to the search text field should not impact the table sorting. [YOCTO #4113] (Bitbake rev: b5b4b6e4fefa6a164a49b291a0993b1ff63947f4) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobwidget.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobwidget.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py
index 9b4261ab8d..1d1ae1a349 100644
--- a/bitbake/lib/bb/ui/crumbs/hobwidget.py
+++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py
@@ -481,6 +481,8 @@ class HobNotebook(gtk.Notebook):
481 self.pages = [] 481 self.pages = []
482 482
483 self.search = None 483 self.search = None
484 self.search_focus = False
485 self.page_changed = False
484 486
485 self.connect("switch-page", self.page_changed_cb) 487 self.connect("switch-page", self.page_changed_cb)
486 488
@@ -494,6 +496,7 @@ class HobNotebook(gtk.Notebook):
494 lbl.set_active(False) 496 lbl.set_active(False)
495 497
496 if self.search: 498 if self.search:
499 self.page_changed = True
497 self.reset_entry(self.search, page_num) 500 self.reset_entry(self.search, page_num)
498 501
499 def append_page(self, child, tab_label, tab_tooltip=None): 502 def append_page(self, child, tab_label, tab_tooltip=None):
@@ -537,6 +540,7 @@ class HobNotebook(gtk.Notebook):
537 child.set_count(0) 540 child.set_count(0)
538 541
539 def set_search_entry_editable_cb(self, search, event): 542 def set_search_entry_editable_cb(self, search, event):
543 self.search_focus = True
540 search.set_editable(True) 544 search.set_editable(True)
541 text = search.get_text() 545 text = search.get_text()
542 if text in self.search_names: 546 if text in self.search_names: