Author: asterix Date: 2008-04-20 16:39:08 +0200 (Sun, 20 Apr 2008) New Revision: 9499
Modified: trunk/src/gajim.py trunk/src/remote_control.py Log: add a new dbus signal when a contact changes his status. fixes #3655
Modified: trunk/src/gajim.py =================================================================== --- trunk/src/gajim.py 2008-04-20 14:29:39 UTC (rev 9498) +++ trunk/src/gajim.py 2008-04-20 14:39:08 UTC (rev 9499) @@ -735,6 +735,8 @@ elif new_show > 1: # Status change (not connected/disconnected or error (<1)) notify.notify('status_change', jid, account, [new_show, status_message]) + if self.remote_ctrl: + self.remote_ctrl.raise_signal('ContactStatus', (account, array)) else: # FIXME: Msn transport (CMSN1.2.1 and PyMSN) doesn't follow the XEP # still the case in 2008
Modified: trunk/src/remote_control.py =================================================================== --- trunk/src/remote_control.py 2008-04-20 14:29:39 UTC (rev 9498) +++ trunk/src/remote_control.py 2008-04-20 14:39:08 UTC (rev 9499) @@ -130,6 +130,10 @@ pass
@dbus.service.signal(INTERFACE, signature='av') + def ContactStatus(self, account_and_array): + pass + + @dbus.service.signal(INTERFACE, signature='av') def NewMessage(self, account_and_array): pass