diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-07-08 11:55:59 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-25 12:54:15 +0100 |
commit | 95d789598653d5b3c6d948a2d96685c15bda230a (patch) | |
tree | 4e928b30b55124f225bc10450576e3d4ac39f5e0 /bitbake | |
parent | bcd622906e794a7b13047c73ff52fad734e15af5 (diff) | |
download | ast2050-yocto-poky-95d789598653d5b3c6d948a2d96685c15bda230a.zip ast2050-yocto-poky-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')
-rw-r--r-- | bitbake/lib/bb/ui/hob.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py index b60ca2f..a8bbd73 100644 --- a/bitbake/lib/bb/ui/hob.py +++ b/bitbake/lib/bb/ui/hob.py @@ -282,6 +282,7 @@ class MainWindow (gtk.Window): dialog.destroy() if response == gtk.RESPONSE_OK: self.reset_build() + self.search.set_text("") return def reset_build(self): @@ -576,12 +577,12 @@ class MainWindow (gtk.Window): hb = gtk.HBox(False, 0) hb.show() - search = gtk.Entry() - search.set_icon_from_stock(gtk.ENTRY_ICON_SECONDARY, "gtk-clear") - search.connect("icon-release", self.search_entry_clear_cb) - search.show() - self.pkgsaz_tree.set_search_entry(search) - hb.pack_end(search, False, False, 0) + self.search = gtk.Entry() + self.search.set_icon_from_stock(gtk.ENTRY_ICON_SECONDARY, "gtk-clear") + self.search.connect("icon-release", self.search_entry_clear_cb) + self.search.show() + self.pkgsaz_tree.set_search_entry(self.search) + hb.pack_end(self.search, False, False, 0) label = gtk.Label("Search packages:") label.show() hb.pack_end(label, False, False, 6) |