do search on enter

This commit is contained in:
Marcos Pinto 2007-06-27 22:31:09 +00:00
parent b375ede4d0
commit 297b8ce65a

View File

@ -35,6 +35,7 @@ class plugin_Search:
self.toolbar = self.interface.wtree.get_widget("tb_right") self.toolbar = self.interface.wtree.get_widget("tb_right")
self.engines = deluge.pref.Preferences(self.conf_file, False) self.engines = deluge.pref.Preferences(self.conf_file, False)
self.search_entry = gtk.Entry() self.search_entry = gtk.Entry()
self.search_entry.connect("activate", self.torrent_search)
self.search_item = gtk.ToolItem() self.search_item = gtk.ToolItem()
self.search_item.add(self.search_entry) self.search_item.add(self.search_entry)
self.search_icon = gtk.Image() self.search_icon = gtk.Image()