more gobject tweaks
This commit is contained in:
parent
658282d09d
commit
9f1efa8802
@ -1,6 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import webbrowser
|
|
||||||
import sys
|
|
||||||
webbrowser.open(sys.argv[1])
|
|
||||||
@ -32,7 +32,6 @@
|
|||||||
import os.path
|
import os.path
|
||||||
import xdg.BaseDirectory
|
import xdg.BaseDirectory
|
||||||
import gobject
|
import gobject
|
||||||
gobject.threads_init()
|
|
||||||
|
|
||||||
PROGRAM_NAME = "Deluge"
|
PROGRAM_NAME = "Deluge"
|
||||||
PROGRAM_VERSION = "0.5.4"
|
PROGRAM_VERSION = "0.5.4"
|
||||||
|
|||||||
@ -48,7 +48,6 @@ import tab_details
|
|||||||
|
|
||||||
class DelugeGTK:
|
class DelugeGTK:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
gobject.threads_init()
|
|
||||||
self.ipc_manager = ipc_manager.Manager(self)
|
self.ipc_manager = ipc_manager.Manager(self)
|
||||||
#Start the Deluge Manager:
|
#Start the Deluge Manager:
|
||||||
self.manager = core.Manager(common.CLIENT_CODE, common.CLIENT_VERSION,
|
self.manager = core.Manager(common.CLIENT_CODE, common.CLIENT_VERSION,
|
||||||
@ -1354,6 +1353,7 @@ class DelugeGTK:
|
|||||||
|
|
||||||
## For testing purposes, create a copy of the interface
|
## For testing purposes, create a copy of the interface
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
gobject.threads_init()
|
||||||
interface = DelugeGTK()
|
interface = DelugeGTK()
|
||||||
interface.start()
|
interface.start()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user