# HG changeset patch # User souliane # Date 1424614289 -3600 # Node ID f8bd40509a2d8d0e444155def91bc4dc91d0d002 # Parent 7a3a232d4938ce6e8a94bf16302686b8c58215fe quick_frontend: add a 'presence' listener for the 'presenceUpdate' signal diff -r 7a3a232d4938 -r f8bd40509a2d frontends/src/quick_frontend/constants.py --- 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'} diff -r 7a3a232d4938 -r f8bd40509a2d frontends/src/quick_frontend/quick_app.py --- 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"""