this fixes the torrentsearch plugin

This commit is contained in:
Andrew Resch 2007-06-10 07:57:23 +00:00
parent 034ea9e1a8
commit 3b344f0ee6
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ class plugin_Search:
### when adding items to the toolbar ### when adding items to the toolbar
self.se = '' self.se = ''
self.toolbar = self.interface.wtree.get_widget("tb_right") self.toolbar = self.interface.wtree.get_widget("tb_right")
self.engines = pref.Preferences(self.conf_file) self.engines = pref.Preferences(self.conf_file, False)
self.search_entry = gtk.Entry() self.search_entry = gtk.Entry()
self.search_item = gtk.ToolItem() self.search_item = gtk.ToolItem()
self.search_item.add(self.search_entry) self.search_item.add(self.search_entry)
@ -58,7 +58,7 @@ class plugin_Search:
self.menu.show_all() self.menu.show_all()
def unload(self): def unload(self):
self.engines.save_to_file(self.conf_file) self.engines.save(self.conf_file)
self.toolbar.remove(self.search_item) self.toolbar.remove(self.search_item)
self.toolbar.remove(self.menu_button) self.toolbar.remove(self.menu_button)
@ -102,7 +102,7 @@ class plugin_Search:
while the_iter is not None: while the_iter is not None:
self.engines.set(model.get_value(the_iter, 0), model.get_value(the_iter, 1)) self.engines.set(model.get_value(the_iter, 0), model.get_value(the_iter, 1))
the_iter = model.iter_next(the_iter) the_iter = model.iter_next(the_iter)
self.engines.save_to_file(self.conf_file) self.engines.save(self.conf_file)
self.populate_search_menu() self.populate_search_menu()