Add support for the deluge-gtk start script
This commit is contained in:
parent
983e37d4ab
commit
2334fff388
|
@ -0,0 +1 @@
|
|||
from gtkui import start
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue