From 5c3d0196d825625edcfbbd969a1036cfe8e45262 Mon Sep 17 00:00:00 2001 From: Morgan Collett Date: Sat, 22 Dec 2007 13:27:31 +0000 Subject: #5368: Delay setting a buddy's current activity so we have it as a valid activity --- diff --git a/NEWS b/NEWS index bd4ab42..c94996e 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +* #5368: Delay setting a buddy's current activity (morgs) * #4965: Add SyncFriends method as temporary measure for synchronising friends list to roster group on Jabber server. diff --git a/src/buddy.py b/src/buddy.py index 3678a88..4b8f76d 100644 --- a/src/buddy.py +++ b/src/buddy.py @@ -596,7 +596,9 @@ class Buddy(ExportedGObject): # Telepathy connection if current_activity or self._current_activity_plugin is tp: self._current_activity_plugin = tp - self.set_properties({_PROP_CURACT: current_activity}) + gobject.timeout_add(500, + lambda: self.set_properties( + {_PROP_CURACT: current_activity})) def update_avatar(self, tp, new_avatar_token, icon=None, mime_type=None): """Handle update of the avatar""" -- cgit v0.9.1