From 94431a66ebab35e02d16224cd3700cc7ac1f2a7a Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 13 Apr 2007 15:15:09 -0400 Subject: [PATCH] Ensure local activities emit ActivityAppeared signal when shared --- services/presence/presenceservice.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/presence/presenceservice.py b/services/presence/presenceservice.py index 426780ff..9c7b7ede 100644 --- a/services/presence/presenceservice.py +++ b/services/presence/presenceservice.py @@ -321,6 +321,12 @@ class PresenceService(dbus.service.Object): self._activities[actid] = activity activity._share(callbacks) + # local activities are valid at creation by definition, but we can't + # connect to the activity's validity-changed signal until its already + # issued the signal, which happens in the activity's constructor + # for local activities. + self._activity_validity_changed_cb(activity, activity.props.valid) + def _activity_validity_changed_cb(self, activity, valid): if valid: self.ActivityAppeared(activity.object_path())