Add support for the deluge-gtk start script

This commit is contained in:
Andrew Resch 2009-07-31 00:57:04 +00:00
parent 983e37d4ab
commit 2334fff388
15 changed files with 32 additions and 14 deletions

View File

@ -0,0 +1 @@
from gtkui import start

View File

@ -40,7 +40,7 @@ import gtk
import pkg_resources
import deluge.common
import deluge.ui.gtkui.common as common
import common
class AboutDialog:
def __init__(self):

View File

@ -46,7 +46,7 @@ import pkg_resources
from deluge.ui.client import client
import deluge.component as component
import deluge.ui.gtkui.listview as listview
import listview
from deluge.configmanager import ConfigManager
from deluge.log import LOG as log
import deluge.common

View File

@ -42,7 +42,7 @@ from twisted.internet import reactor
import deluge.component as component
import deluge.common
import deluge.ui.gtkui.common as common
import common
import deluge.configmanager
from deluge.ui.client import client
import deluge.ui.client

View File

@ -41,7 +41,7 @@ import gobject
import base64
from deluge.ui.client import client
import deluge.ui.gtkui.listview as listview
import listview
import deluge.component as component
import deluge.common
from deluge.configmanager import ConfigManager

View File

@ -38,7 +38,7 @@ import gtk, gtk.glade
import pkg_resources
import deluge.common
import deluge.ui.gtkui.common as common
import common
from deluge.ui.client import client
import deluge.component as component
from deluge.log import LOG as log

View File

@ -71,6 +71,23 @@ import deluge.configmanager
import deluge.common
import deluge.error
from deluge.ui.ui import _UI
class Gtk(_UI):
help = """Starts the Deluge GTK+ interface"""
def __init__(self):
super(Gtk, self).__init__("gtk")
def start(self):
super(Gtk, self).start()
GtkUI(self.args)
def start():
Gtk().start()
DEFAULT_PREFS = {
"classic_mode": True,
"interactive_add": True,
@ -122,7 +139,7 @@ DEFAULT_PREFS = {
"show_rate_in_title": False
}
class GtkUI:
class GtkUI(object):
def __init__(self, args):
# Initialize gettext

View File

@ -48,7 +48,7 @@ from deluge.configmanager import ConfigManager
from deluge.ui.gtkui.ipcinterface import process_args
import deluge.common
import deluge.ui.gtkui.common as common
import common
from deluge.log import LOG as log

View File

@ -43,7 +43,7 @@ import deluge.error
import deluge.component as component
from deluge.ui.client import client
import deluge.common
import deluge.ui.gtkui.common as common
import common
from deluge.configmanager import ConfigManager
from deluge.log import LOG as log

View File

@ -36,7 +36,7 @@
import deluge.component as component
import deluge.common
import deluge.ui.gtkui.common as common
import common
from deluge.log import LOG as log
from deluge.configmanager import ConfigManager
from deluge.ui.client import client

View File

@ -44,7 +44,7 @@ from deluge.log import LOG as log
from deluge.ui.client import client
import deluge.common
import deluge.error
import deluge.ui.gtkui.common as common
import common
from deluge.configmanager import ConfigManager
import deluge.configmanager

View File

@ -45,7 +45,7 @@ from deluge.ui.client import client
import deluge.common
from deluge.configmanager import ConfigManager
from deluge.log import LOG as log
import deluge.ui.gtkui.common as common
import common
class QueuedTorrents(component.Component):
def __init__(self):

View File

@ -40,7 +40,7 @@ import gobject
from deluge.ui.client import client
import deluge.component as component
import deluge.common
import deluge.ui.gtkui.common as common
import common
from deluge.configmanager import ConfigManager
from deluge.log import LOG as log

View File

@ -42,7 +42,7 @@ from deluge.ui.client import client
import deluge.common
from deluge.configmanager import ConfigManager
from deluge.log import LOG as log
import deluge.ui.gtkui.common as common
import common
class SystemTray(component.Component):
def __init__(self):

View File

@ -47,7 +47,7 @@ import deluge.common
import deluge.component as component
from deluge.ui.client import client
from deluge.log import LOG as log
import deluge.ui.gtkui.listview as listview
import listview
from deluge.ui.tracker_icons import TrackerIcons
# Status icons.. Create them from file only once to avoid constantly