coding standards
This commit is contained in:
parent
0618afa787
commit
ca345fee0d
1 changed files with 6 additions and 7 deletions
13
src/gajim.py
13
src/gajim.py
|
@ -739,7 +739,7 @@ class Interface:
|
||||||
return
|
return
|
||||||
self.windows[account]['gc'][jid].set_subject(jid, array[1])
|
self.windows[account]['gc'][jid].set_subject(jid, array[1])
|
||||||
if len(jids) > 1:
|
if len(jids) > 1:
|
||||||
self.windows[account]['gc'][jid].print_conversation(\
|
self.windows[account]['gc'][jid].print_conversation(
|
||||||
'%s has set the subject to %s' % (jids[1], array[1]), jid)
|
'%s has set the subject to %s' % (jids[1], array[1]), jid)
|
||||||
|
|
||||||
def handle_event_gc_config(self, account, array):
|
def handle_event_gc_config(self, account, array):
|
||||||
|
@ -809,8 +809,8 @@ class Interface:
|
||||||
self.add_event(account, jid, 'file-send-error', file_props)
|
self.add_event(account, jid, 'file-send-error', file_props)
|
||||||
|
|
||||||
if gajim.show_notification(account):
|
if gajim.show_notification(account):
|
||||||
instance = dialogs.PopupNotificationWindow(_('File Transfer Error'), jid,
|
instance = dialogs.PopupNotificationWindow(_('File Transfer Error'),
|
||||||
account, 'file-send-error', file_props)
|
jid, account, 'file-send-error', file_props)
|
||||||
self.roster.popup_notification_windows.append(instance)
|
self.roster.popup_notification_windows.append(instance)
|
||||||
|
|
||||||
def add_event(self, account, jid, typ, args):
|
def add_event(self, account, jid, typ, args):
|
||||||
|
@ -867,8 +867,8 @@ class Interface:
|
||||||
|
|
||||||
if gajim.show_notification(account):
|
if gajim.show_notification(account):
|
||||||
# check if we should be notified
|
# check if we should be notified
|
||||||
instance = dialogs.PopupNotificationWindow(_('File Transfer Error'), jid,
|
instance = dialogs.PopupNotificationWindow(_('File Transfer Error'),
|
||||||
account, msg_type, file_props)
|
jid, account, msg_type, file_props)
|
||||||
self.roster.popup_notification_windows.append(instance)
|
self.roster.popup_notification_windows.append(instance)
|
||||||
|
|
||||||
def handle_event_file_request(self, account, array):
|
def handle_event_file_request(self, account, array):
|
||||||
|
@ -1361,8 +1361,7 @@ class Interface:
|
||||||
# get instances for windows/dialogs that will show_all()/hide()
|
# get instances for windows/dialogs that will show_all()/hide()
|
||||||
self.windows['file_transfers'] = dialogs.FileTransfersWindow()
|
self.windows['file_transfers'] = dialogs.FileTransfersWindow()
|
||||||
self.windows['preferences'] = config.PreferencesWindow()
|
self.windows['preferences'] = config.PreferencesWindow()
|
||||||
self.windows['add_remove_emoticons'] = \
|
self.windows['add_remove_emoticons'] = config.ManageEmoticonsWindow()
|
||||||
config.ManageEmoticonsWindow()
|
|
||||||
self.windows['roster'] = self.roster
|
self.windows['roster'] = self.roster
|
||||||
|
|
||||||
for account in gajim.connections:
|
for account in gajim.connections:
|
||||||
|
|
Loading…
Add table
Reference in a new issue