From 29f5f732f6b287c6dfd97e2905366ca417c3da46 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 13 Jun 2007 21:42:20 +0000 Subject: [PATCH] ok...real fix for torrentsearch :) --- plugins/TorrentSearch/plugin.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/TorrentSearch/plugin.py b/plugins/TorrentSearch/plugin.py index 33fbfd0fa..db2388aa8 100644 --- a/plugins/TorrentSearch/plugin.py +++ b/plugins/TorrentSearch/plugin.py @@ -3,22 +3,22 @@ class plugin_Search: def __init__(self, path, deluge_core, deluge_interface): import gtk, gtk.glade, os - from deluge import common, dgtk, pref + import deluge.common, deluge.dgtk, deluge.pref self.core = deluge_core self.interface = deluge_interface - self.conf_file = common.CONFIG_DIR + "/search.conf" + self.conf_file = deluge.common.CONFIG_DIR + "/search.conf" if not os.path.isfile(self.conf_file): f = open(self.conf_file, mode='w') f.flush() f.close() glade = gtk.glade.XML(path + "/searchdlg.glade") self.dlg = glade.get_widget("search_dialog") - self.dlg.set_icon_from_file(common.get_pixmap("deluge32.png")) + self.dlg.set_icon_from_file(deluge.common.get_pixmap("deluge32.png")) self.view = glade.get_widget("search_view") model = gtk.ListStore(str, str) self.view.set_model(model) - dgtk.add_text_column(self.view, "Name", 0) - dgtk.add_text_column(self.view, "Search String", 1) + deluge.dgtk.add_text_column(self.view, "Name", 0) + deluge.dgtk.add_text_column(self.view, "Search String", 1) self.field_name = glade.get_widget("field_name") self.field_search = glade.get_widget("field_search") self.button_add = glade.get_widget("button_addsearch") @@ -33,7 +33,7 @@ class plugin_Search: ### when adding items to the toolbar self.se = '' self.toolbar = self.interface.wtree.get_widget("tb_right") - self.engines = pref.Preferences(self.conf_file, False) + self.engines = deluge.pref.Preferences(self.conf_file, False) self.search_entry = gtk.Entry() self.search_item = gtk.ToolItem() self.search_item.add(self.search_entry)