summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-07-08 11:55:59 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-25 12:54:15 +0100
commit95d789598653d5b3c6d948a2d96685c15bda230a (patch)
tree4e928b30b55124f225bc10450576e3d4ac39f5e0 /bitbake/lib
parentbcd622906e794a7b13047c73ff52fad734e15af5 (diff)
downloadpoky-95d789598653d5b3c6d948a2d96685c15bda230a.tar.gz
ui/hob: clear the search entry when resetting
When resetting and clearing all selections the searched for term is no longer the selected row in the packages list, clear the search entry to prevent cognitive disconnect. (Bitbake rev: 4f86f5763ecf7f3a9673a9b18e96042e9387699b) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/ui/hob.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py
index b60ca2f323..a8bbd735a9 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -282,6 +282,7 @@ class MainWindow (gtk.Window):
282 dialog.destroy() 282 dialog.destroy()
283 if response == gtk.RESPONSE_OK: 283 if response == gtk.RESPONSE_OK:
284 self.reset_build() 284 self.reset_build()
285 self.search.set_text("")
285 return 286 return
286 287
287 def reset_build(self): 288 def reset_build(self):
@@ -576,12 +577,12 @@ class MainWindow (gtk.Window):
576 577
577 hb = gtk.HBox(False, 0) 578 hb = gtk.HBox(False, 0)
578 hb.show() 579 hb.show()
579 search = gtk.Entry() 580 self.search = gtk.Entry()
580 search.set_icon_from_stock(gtk.ENTRY_ICON_SECONDARY, "gtk-clear") 581 self.search.set_icon_from_stock(gtk.ENTRY_ICON_SECONDARY, "gtk-clear")
581 search.connect("icon-release", self.search_entry_clear_cb) 582 self.search.connect("icon-release", self.search_entry_clear_cb)
582 search.show() 583 self.search.show()
583 self.pkgsaz_tree.set_search_entry(search) 584 self.pkgsaz_tree.set_search_entry(self.search)
584 hb.pack_end(search, False, False, 0) 585 hb.pack_end(self.search, False, False, 0)
585 label = gtk.Label("Search packages:") 586 label = gtk.Label("Search packages:")
586 label.show() 587 label.show()
587 hb.pack_end(label, False, False, 6) 588 hb.pack_end(label, False, False, 6)