diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2010-11-06 12:04:41 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2010-11-06 12:04:41 +0300 |
commit | 69578659a2e257b473df1c4c0b3453bc568766c1 (patch) | |
tree | 5aa6d4deeebab20178615abc61838889f5e6f125 /src/remote_control.py | |
parent | f68d270f8f32b65d3e97c5a41ea52f603f51340e (diff) |
use NEC to handle our-status event
Diffstat (limited to 'src/remote_control.py')
-rw-r--r-- | src/remote_control.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/remote_control.py b/src/remote_control.py index a8fcc9d14..3811c2c68 100644 --- a/src/remote_control.py +++ b/src/remote_control.py @@ -125,6 +125,8 @@ class Remote: ged.POSTGUI, self.on_unsubscribed_presence_received) gajim.ged.register_event_handler('gc-message-received', ged.POSTGUI, self.on_gc_message_received) + gajim.ged.register_event_handler('our-show', + ged.POSTGUI, self.on_our_status) def on_last_status_time(self, obj): self.raise_signal('LastStatusTime', (obj.conn.name, [ @@ -178,6 +180,9 @@ class Remote: obj.timestamp, obj.has_timestamp, obj.xhtml_msgtxt, obj.status_code, obj.displaymarking, obj.captcha_form, obj.needs_highlight])) + def on_our_status(self, obj): + self.raise_signal('AccountPresence', (obj.show, obj.conn.name)) + def raise_signal(self, signal, arg): if self.signal_object: try: |