Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-09-03 16:23:37 (GMT)
committer Tomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-09-03 16:24:28 (GMT)
commit66b58a6494ec30b44b720e87a7790caa830fa964 (patch)
tree077d4074cc0c89877d06c37ba49c30c04ca6b65c
parentbe446029810c31a1d8356288fec08ddbde5e0c5c (diff)
Actually update the model when there are Alias or BuddyInfo changes
-rw-r--r--src/jarabe/model/neighborhood.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jarabe/model/neighborhood.py b/src/jarabe/model/neighborhood.py
index a500675..d47f4e1 100644
--- a/src/jarabe/model/neighborhood.py
+++ b/src/jarabe/model/neighborhood.py
@@ -328,6 +328,8 @@ class _Account(gobject.GObject):
if handle in self._buddy_handles:
logging.debug('Got handle %r with nick %r, going to update',
handle, alias)
+ properties = {CONNECTION_INTERFACE_ALIASING + '/alias': alias}
+ self.emit('buddy-updated', self._buddy_handles[handle], properties)
def __presences_changed_cb(self, presences):
logging.debug('_Account.__presences_changed_cb %r', presences)
@@ -341,6 +343,7 @@ class _Account(gobject.GObject):
def __buddy_info_updated_cb(self, handle, properties):
logging.debug('_Account.__buddy_info_updated_cb %r %r', handle,
properties)
+ self.emit('buddy-updated', self._buddy_handles[handle], properties)
def __current_activity_changed_cb(self, contact_handle, activity_id,
room_handle):