From e55db9645db5737582e6606ff1dc721ed69a6d78 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 10 Nov 2005 09:59:27 +0000 Subject: [PATCH] middle click on merged accounts row now works --- src/roster_window.py | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index f714f78e9..4dbe8228d 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1312,9 +1312,24 @@ _('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] - show = gajim.connections[account].connected - if show > 1: # We are connected - self.on_change_status_message_activate(widget, 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