some typo

This commit is contained in:
Yann Leboulanger 2005-12-02 17:16:23 +00:00
parent ea8cefaac1
commit ff5e4b32e0
1 changed files with 6 additions and 6 deletions

View File

@ -1272,20 +1272,20 @@ class InvitationReceivedDialog:
JoinGroupchatWindow(account, server = server, room = room) JoinGroupchatWindow(account, server = server, room = room)
class ProgressDialog: class ProgressDialog:
def __init__(self, title, during_text, messages_queue): def __init__(self, title_text, during_text, messages_queue):
'''during text is what to show during the procedure, '''during text is what to show during the procedure,
messages_queue has the message to show messages_queue has the message to show
in the textview''' in the textview'''
self.xml = gtk.glade.XML(GTKGUI_GLADE, 'progress_dialog', APP) self.xml = gtk.glade.XML(GTKGUI_GLADE, 'progress_dialog', APP)
dialog = xml.get_widget('progress_dialog') dialog = self.xml.get_widget('progress_dialog')
self.label = xml.get_widget('label') self.label = self.xml.get_widget('label')
self.label.set_markup('<big>' + during_text + '</big>') self.label.set_markup('<big>' + during_text + '</big>')
self.progressbar = xml.get_widget('progressbar') self.progressbar = self.xml.get_widget('progressbar')
self.textview_buffer = xml.get_widget('textview').get_buffer() self.textview_buffer = self.xml.get_widget('textview').get_buffer()
dialog.set_title(title_text) dialog.set_title(title_text)
dialog.show_all() dialog.show_all()
xml.signal_autoconnect(self) self.xml.signal_autoconnect(self)
self.update_progressbar_timeout_id = gobject.timeout_add(100, self.update_progressbar_timeout_id = gobject.timeout_add(100,
self.update_progressbar) self.update_progressbar)