middle click on merged accounts row now works

This commit is contained in:
Yann Leboulanger 2005-11-10 09:59:27 +00:00
parent 0833043975
commit e55db9645d
1 changed files with 18 additions and 3 deletions

View File

@ -1312,10 +1312,25 @@ _('If "%s" accepts this request you will know his status.') %jid)
gajim.interface.windows[account]['chats'][jid].window.present()
elif type == 'account':
account = model[iter][C_ACCOUNT]
if account != 'all':
show = gajim.connections[account].connected
if show > 1: # We are connected
self.on_change_status_message_activate(widget, account)
return True
show = helpers.get_global_show()
if show == 'offline':
return True
dlg = dialogs.ChangeStatusMessageDialog(show)
message = dlg.run()
if not message:
return True
for acct in gajim.connections:
if not gajim.config.get_per('accounts', acct,
'sync_with_global_status'):
continue
current_show = gajim.SHOW_LIST[gajim.connections[acct].connected]
self.send_status(acct, current_show, message)
return True
if event.button == 1: # Left click
try: