Mercurial > libervia-backend
changeset 1329:f8bd40509a2d frontends_multi_profiles
quick_frontend: add a 'presence' listener for the 'presenceUpdate' signal
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 22 Feb 2015 15:11:29 +0100 (2015-02-22) |
parents | 7a3a232d4938 |
children | 22fce2e51c70 |
files | frontends/src/quick_frontend/constants.py frontends/src/quick_frontend/quick_app.py |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/constants.py Sat Feb 21 12:39:04 2015 +0100 +++ b/frontends/src/quick_frontend/constants.py Sun Feb 22 15:11:29 2015 +0100 @@ -71,4 +71,4 @@ WIDGET_RAISE = 'RAISE' WIDGET_RECREATE = 'RECREATE' - LISTENERS = {'avatar'} + LISTENERS = {'avatar', 'presence'}
--- a/frontends/src/quick_frontend/quick_app.py Sat Feb 21 12:39:04 2015 +0100 +++ b/frontends/src/quick_frontend/quick_app.py Sun Feb 22 15:11:29 2015 +0100 @@ -463,6 +463,7 @@ # self.showAlert(_("Watched jid [%s] is connected !") % entity.bare) self.contact_lists[profile].updatePresence(entity, show, priority, statuses) + self.callListeners('presence', entity, show, priority, statuses, profile) def roomJoinedHandler(self, room_jid_s, room_nicks, user_nick, profile): """Called when a MUC room is joined"""