fix arguments of on_open_chat_window functions. It is called from callbacks, so first argument is widget.
This commit is contained in:
parent
8929f4e630
commit
a9e25aa98a
2 changed files with 2 additions and 2 deletions
|
@ -2775,7 +2775,7 @@ class Interface:
|
||||||
mc = mw.get_control(fjid, account)
|
mc = mw.get_control(fjid, account)
|
||||||
mc.user_nick = gajim.nicks[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):
|
session = None):
|
||||||
# Get the window containing the chat
|
# Get the window containing the chat
|
||||||
fjid = contact.jid
|
fjid = contact.jid
|
||||||
|
|
|
@ -3347,7 +3347,7 @@ class RosterWindow:
|
||||||
gajim.contacts.get_contact_with_highest_priority(account, jid)
|
gajim.contacts.get_contact_with_highest_priority(account, jid)
|
||||||
if jid == gajim.get_jid_from_account(account):
|
if jid == gajim.get_jid_from_account(account):
|
||||||
resource = contact.resource
|
resource = contact.resource
|
||||||
gajim.interface.on_open_chat_window(contact, account, \
|
gajim.interface.on_open_chat_window(None, contact, account, \
|
||||||
resource = resource, session = session)
|
resource = resource, session = session)
|
||||||
|
|
||||||
def on_roster_treeview_row_activated(self, widget, path, col = 0):
|
def on_roster_treeview_row_activated(self, widget, path, col = 0):
|
||||||
|
|
Loading…
Add table
Reference in a new issue