From a9e25aa98a14d06959f9dc18542970acbc5f8ee2 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 26 Apr 2008 23:36:03 +0000 Subject: [PATCH] fix arguments of on_open_chat_window functions. It is called from callbacks, so first argument is widget. --- src/gajim.py | 2 +- src/roster_window.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index bdfea4db1..93feefe38 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -2775,7 +2775,7 @@ class Interface: mc = mw.get_control(fjid, account) mc.user_nick = gajim.nicks[account] - def on_open_chat_window(self, contact, account, resource = None, + def on_open_chat_window(self, widget, contact, account, resource = None, session = None): # Get the window containing the chat fjid = contact.jid diff --git a/src/roster_window.py b/src/roster_window.py index e98c933f3..a782c5cb1 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -3347,7 +3347,7 @@ class RosterWindow: gajim.contacts.get_contact_with_highest_priority(account, jid) if jid == gajim.get_jid_from_account(account): resource = contact.resource - gajim.interface.on_open_chat_window(contact, account, \ + gajim.interface.on_open_chat_window(None, contact, account, \ resource = resource, session = session) def on_roster_treeview_row_activated(self, widget, path, col = 0):