Author: asterix Date: 2008-04-27 01:36:03 +0200 (Sun, 27 Apr 2008) New Revision: 9537
Modified: trunk/src/gajim.py trunk/src/roster_window.py Log: fix arguments of on_open_chat_window functions. It is called from callbacks, so first argument is widget.
Modified: trunk/src/gajim.py =================================================================== --- trunk/src/gajim.py 2008-04-26 10:18:33 UTC (rev 9536) +++ trunk/src/gajim.py 2008-04-26 23:36:03 UTC (rev 9537) @@ -2775,7 +2775,7 @@ 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
Modified: trunk/src/roster_window.py =================================================================== --- trunk/src/roster_window.py 2008-04-26 10:18:33 UTC (rev 9536) +++ trunk/src/roster_window.py 2008-04-26 23:36:03 UTC (rev 9537) @@ -3347,7 +3347,7 @@ 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):