Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorgan Collett <morgan.collett@gmail.com>2007-12-22 13:27:31 (GMT)
committer Morgan Collett <morgan.collett@gmail.com>2007-12-22 13:27:31 (GMT)
commitae12e8717ca9ed0c92409742f9814f28e62ca1c4 (patch)
treef2f34c867080e7e6cfc4efb1051f206f8dca624f /src
parentb89370f5b1ffe66cc20e00a75ca26a977fb0e60b (diff)
#5368: Delay setting a buddy's current activity so we have it as a valid activity
Diffstat (limited to 'src')
-rw-r--r--src/buddy.py4
1 files changed, 3 insertions, 1 deletions
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"""