more gobject tweaks

This commit is contained in:
Marcos Pinto 2007-08-08 03:21:43 +00:00
parent 658282d09d
commit 9f1efa8802
3 changed files with 28 additions and 35 deletions

View File

@ -1,6 +0,0 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import webbrowser
import sys
webbrowser.open(sys.argv[1])

View File

@ -32,7 +32,6 @@
import os.path
import xdg.BaseDirectory
import gobject
gobject.threads_init()
PROGRAM_NAME = "Deluge"
PROGRAM_VERSION = "0.5.4"

View File

@ -48,7 +48,6 @@ import tab_details
class DelugeGTK:
def __init__(self):
gobject.threads_init()
self.ipc_manager = ipc_manager.Manager(self)
#Start the Deluge Manager:
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
if __name__ == "__main__":
gobject.threads_init()
interface = DelugeGTK()
interface.start()