37
37
# Olive GTK UI version
38
38
__version__ = '0.11.0'
41
if sys.platform == 'win32':
42
gladefile = os.path.dirname(sys.executable) + "/share/olive/olive.glade"
44
gladefile = "/usr/share/olive/olive.glade"
46
if not os.path.exists(gladefile):
47
# Load from current directory if not installed
48
gladefile = "olive.glade"
50
if not os.path.exists(gladefile):
52
print _('Glade file cannot be found.')
41
56
""" The main Olive GTK frontend class. This is called when launching the
44
59
def __init__(self):
46
if sys.platform == 'win32':
47
self.gladefile = os.path.dirname(sys.executable) + "/share/olive/olive.glade"
49
self.gladefile = "/usr/share/olive/olive.glade"
51
if not os.path.exists(self.gladefile):
52
# Load from current directory if not installed
53
self.gladefile = "olive.glade"
55
if not os.path.exists(self.gladefile):
57
print _('Glade file cannot be found.')
60
self.toplevel = gtk.glade.XML(self.gladefile, 'window_main', 'olive-gtk')
60
self.toplevel = gtk.glade.XML(gladefile, 'window_main', 'olive-gtk')
62
62
self.window = self.toplevel.get_widget('window_main')
64
64
self.pref = OlivePreferences()
65
65
self.comm = OliveCommunicator(self.toplevel, self.pref)
66
handler = OliveHandler(self.gladefile, self.comm)
66
handler = OliveHandler(self.comm)
68
68
# Dictionary for signal_autoconnect
69
69
dic = { "on_window_main_destroy": gtk.main_quit,
226
226
for rpath, id, kind in delta.added:
227
227
if rpath == filename:
229
for rpath, id, kind, text_modified, meta_modified in delta.removed:
229
for rpath, id, kind in delta.removed:
230
230
if rpath == filename:
231
231
status = 'removed'
232
232
for rpath, id, kind, text_modified, meta_modified in delta.modified: