[kupfer: 18/22] plugin.gajim: Fix OpenChat to use GajimContact.object



commit 1416f491c8b7c8907c5678b6868869b540bac073
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Fri Oct 30 14:40:58 2009 +0100

    plugin.gajim: Fix OpenChat to use GajimContact.object
    
    The change of GajimContact's .object (represented object) broke
    OpenChat.

 kupfer/plugin/gajim.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/plugin/gajim.py b/kupfer/plugin/gajim.py
index ac55142..1e2c127 100644
--- a/kupfer/plugin/gajim.py
+++ b/kupfer/plugin/gajim.py
@@ -65,7 +65,6 @@ class GajimContact(Leaf):
 					"userid": jid,
 					"service": resource[0][0] if resource else u"",
 				}
-		self.account = account
 
 	def get_actions(self):
 		yield OpenChat()
@@ -87,8 +86,9 @@ class OpenChat(Action):
 
 	def activate(self, leaf):
 		interface = _create_dbus_connection()
+		account, jid = leaf.object
 		if interface is not None:
-			interface.open_chat(leaf.object, leaf.account)
+			interface.open_chat(jid, account)
 
 	def get_icon_name(self):
 		return 'gajim'



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]