Optimize a little bit

This commit is contained in:
Bryan Schumaker 2010-11-23 20:12:33 -05:00
parent ea7e869dde
commit 231d7f23fc
2 changed files with 6 additions and 11 deletions

View File

@ -18,13 +18,8 @@ if __bug__ > 0:
if __dev__ == True: if __dev__ == True:
__vers__ += "-dev" __vers__ += "-dev"
gdk.threads_init()
gobject.threads_init()
# Lazy loaded modules # Lazy loaded modules
tabs = None tabs = None
box = None
# Function override variables # Function override variables
get_tabs = None get_tabs = None
@ -34,6 +29,8 @@ def startup():
global gtk global gtk
import gtk import gtk
libsaria.startup() libsaria.startup()
gdk.threads_init()
gobject.threads_init()
gtk.main() gtk.main()
def exit(widget, event): def exit(widget, event):

View File

@ -7,11 +7,10 @@ files = None
TARGET_TYPE_URI_LIST = 80 TARGET_TYPE_URI_LIST = 80
window = None window = None
add = None add = None
resize = None resize = None
connect = None connect = None
set_title = None set_title = None
def init(width, height): def init(width, height):
@ -56,7 +55,6 @@ def dnd_receive(widget, context, x, y, selection, type, time):
from libsaria.path import files from libsaria.path import files
if type == TARGET_TYPE_URI_LIST: if type == TARGET_TYPE_URI_LIST:
uri = selection.data.strip('\r\n\x00') uri = selection.data.strip('\r\n\x00')
import os
for file in uri.split(): for file in uri.split():
file = file[7:] file = file[7:]
files.universal_open(file) files.universal_open(file)