diff options
author | Dan Williams <dcbw@redhat.com> | 2007-07-18 06:04:01 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-07-18 06:04:01 (GMT) |
commit | 326126cbd70aa18f754779bb28d72ed517e1e7c6 (patch) | |
tree | eaab2591cc9bf6bb548e7974173afead3aaebf41 /shell/model/homeactivity.py | |
parent | 83a49dcd4e150fc8cdb26c92a6b1c353d00f13aa (diff) |
Suppress annoying warnings about unknown activities from the PS
Diffstat (limited to 'shell/model/homeactivity.py')
-rw-r--r-- | shell/model/homeactivity.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/shell/model/homeactivity.py b/shell/model/homeactivity.py index 4ee06d4..4487c09 100644 --- a/shell/model/homeactivity.py +++ b/shell/model/homeactivity.py @@ -113,7 +113,15 @@ class HomeActivity(gobject.GObject): colour for the icon. """ pservice = presenceservice.get_instance() - activity = pservice.get_activity(self._activity_id) + + # HACK to suppress warning in logs when activity isn't found + # (if it's locally launched and not shared yet) + activity = None + for act in pservice.get_activities(): + if self._activity_id == act.props.id: + activity = act + break + if activity != None: return XoColor(activity.props.color) else: |