From b6f40a81151c530af6ab5aefad2e0f1724d9a799 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 17 Apr 2009 21:09:14 +0000 Subject: [PATCH] Move CoreConfig component out of GtkUI since it's UI independent --- deluge/ui/{gtkui => }/coreconfig.py | 2 +- deluge/ui/gtkui/gtkui.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) rename deluge/ui/{gtkui => }/coreconfig.py (95%) diff --git a/deluge/ui/gtkui/coreconfig.py b/deluge/ui/coreconfig.py similarity index 95% rename from deluge/ui/gtkui/coreconfig.py rename to deluge/ui/coreconfig.py index 5a6cb49be..ba993d109 100644 --- a/deluge/ui/gtkui/coreconfig.py +++ b/deluge/ui/coreconfig.py @@ -30,7 +30,7 @@ from deluge.log import LOG as log class CoreConfig(component.Component): def __init__(self): log.debug("CoreConfig init..") - component.Component.__init__(self, "CoreConfig", ["Signals"]) + component.Component.__init__(self, "CoreConfig") self.config = {} client.register_event_handler("ConfigValueChangedEvent", self.on_configvaluechanged_event) diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py index cc3d16104..22c27882d 100644 --- a/deluge/ui/gtkui/gtkui.py +++ b/deluge/ui/gtkui/gtkui.py @@ -54,7 +54,6 @@ from ipcinterface import IPCInterface from queuedtorrents import QueuedTorrents from addtorrentdialog import AddTorrentDialog -from coreconfig import CoreConfig import deluge.configmanager import deluge.common @@ -179,8 +178,6 @@ class GtkUI: self.statusbar = StatusBar() self.addtorrentdialog = AddTorrentDialog() - self.coreconfig = CoreConfig() - # Initalize the plugins self.plugins = PluginManager()