coding standards
This commit is contained in:
parent
aba6fc2599
commit
c8d97aaa17
1 changed files with 33 additions and 34 deletions
|
@ -673,8 +673,7 @@ class AddNewContactWindow:
|
||||||
'icq': _('ICQ Number:'),
|
'icq': _('ICQ Number:'),
|
||||||
'msn': _('MSN Address:'),
|
'msn': _('MSN Address:'),
|
||||||
'yahoo': _('Yahoo! Address:')}
|
'yahoo': _('Yahoo! Address:')}
|
||||||
def __init__(self, account = None, jid = None, user_nick = None,
|
def __init__(self, account=None, jid=None, user_nick=None, group=None):
|
||||||
group = None):
|
|
||||||
self.account = account
|
self.account = account
|
||||||
if account is None:
|
if account is None:
|
||||||
# fill accounts with active accounts
|
# fill accounts with active accounts
|
||||||
|
@ -1149,8 +1148,8 @@ class FileChooserDialog(gtk.FileChooserDialog):
|
||||||
select_multiple = False, current_folder = None, on_response_ok = None,
|
select_multiple = False, current_folder = None, on_response_ok = None,
|
||||||
on_response_cancel = None):
|
on_response_cancel = None):
|
||||||
|
|
||||||
gtk.FileChooserDialog.__init__(self, title = title_text,
|
gtk.FileChooserDialog.__init__(self, title=title_text, action=action,
|
||||||
action = action, buttons = buttons)
|
buttons=buttons)
|
||||||
|
|
||||||
self.set_default_response(default_response)
|
self.set_default_response(default_response)
|
||||||
self.set_select_multiple(select_multiple)
|
self.set_select_multiple(select_multiple)
|
||||||
|
@ -2384,9 +2383,9 @@ class SingleMessageWindow:
|
||||||
# add > at the begining of each line
|
# add > at the begining of each line
|
||||||
self.message = self.message.replace('\n', '\n> ') + '\n\n'
|
self.message = self.message.replace('\n', '\n> ') + '\n\n'
|
||||||
self.window.destroy()
|
self.window.destroy()
|
||||||
SingleMessageWindow(self.account, to = self.from_whom,
|
SingleMessageWindow(self.account, to=self.from_whom, action='send',
|
||||||
action = 'send', from_whom = self.from_whom, subject = self.subject,
|
from_whom=self.from_whom, subject=self.subject, message=self.message,
|
||||||
message = self.message, session = self.session)
|
session=self.session)
|
||||||
|
|
||||||
def on_send_and_close_button_clicked(self, widget):
|
def on_send_and_close_button_clicked(self, widget):
|
||||||
self.send_single_message()
|
self.send_single_message()
|
||||||
|
|
Loading…
Add table
Reference in a new issue