This commit is contained in:
Huang Peng 2008-08-01 22:08:02 +08:00
Родитель c398123436
Коммит bc962489b9
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -125,7 +125,7 @@ class Setup(object):
# do something with the value # do something with the value
if data[DATA_STARTED] == False: if data[DATA_STARTED] == False:
try: try:
self.__bus.register_start_engine(data[DATA_NAME], data[DATA_LANG]) self.__bus.register_start_engine(data[DATA_LANG], data[DATA_NAME])
except Exception, e: except Exception, e:
dlg = gtk.MessageDialog(type = gtk.MESSAGE_ERROR, dlg = gtk.MessageDialog(type = gtk.MESSAGE_ERROR,
buttons = gtk.BUTTONS_CLOSE, buttons = gtk.BUTTONS_CLOSE,
@ -134,7 +134,7 @@ class Setup(object):
return return
else: else:
try: try:
self.__bus.register_stop_engine(data[DATA_NAME], data[DATA_LANG]) self.__bus.register_stop_engine(data[DATA_LANG], data[DATA_NAME])
except Exception, e: except Exception, e:
dlg = gtk.MessageDialog(type = gtk.MESSAGE_ERROR, dlg = gtk.MessageDialog(type = gtk.MESSAGE_ERROR,
buttons = gtk.BUTTONS_CLOSE, buttons = gtk.BUTTONS_CLOSE,