diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2010-08-23 16:35:03 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2010-08-23 16:35:03 +0400 |
commit | df7096167f6d8f03aaccdb6fbf94192fa1fbd5ba (patch) | |
tree | 392edb4b656f85ad8f48a31a24cd7e4386815014 /src/remote_control.py | |
parent | 06da4df46f42635eabe927e80d352d0c250c3543 (diff) |
use NEC to handle roster set events
Diffstat (limited to 'src/remote_control.py')
-rw-r--r-- | src/remote_control.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/remote_control.py b/src/remote_control.py index 3cb29fa68..6a80e2e39 100644 --- a/src/remote_control.py +++ b/src/remote_control.py @@ -113,6 +113,8 @@ class Remote: self.on_time) gajim.ged.register_event_handler('gmail-nofify', ged.POSTGUI, self.on_gmail_notify) + gajim.ged.register_event_handler('roster-info', ged.POSTGUI, + self.on_roster_info) def on_last_status_time(self, obj): self.raise_signal('LastStatusTime', (obj.conn.name, [ @@ -130,6 +132,10 @@ class Remote: self.raise_signal('NewGmail', (obj.conn.name, [obj.jid, obj.newmsgs, obj.gmail_messages_list])) + def on_roster_info(self, obj): + self.raise_signal('RosterInfo', (obj.conn.name, [obj.jid, obj.name, + obj.sub, obj.ask, obj.groups])) + def raise_signal(self, signal, arg): if self.signal_object: try: |