Cleanup browser model service on destroy.

Remove the activity service even if the owner is gone.
This commit is contained in:
Marco Pesenti Gritti
2006-09-12 13:21:18 +02:00
parent d65e8b88e7
commit 53f7cc1f34
4 changed files with 17 additions and 9 deletions
+1 -2
View File
@@ -68,8 +68,7 @@ class MeshGroup(goocanvas.Group):
self._activities[item.get_id()] = item
def _activity_disappeared_cb(self, activity):
print 'remove'
def _activity_disappeared_cb(self, pservice, activity):
if self._activities.has_key(activity.get_id()):
self.remove_child(self._activities[activity.get_id()])
del self._activities[activity.get_id()]