Release exported dbus object #6127

This commit is contained in:
Simon Schampijer 2008-01-31 20:48:03 +01:00
parent 2c47476548
commit 12869d0152

View File

@ -54,6 +54,7 @@ import traceback
import gtk, gobject import gtk, gobject
import dbus import dbus
import dbus.service
import json import json
from sugar import util from sugar import util
@ -872,6 +873,9 @@ class Activity(Window, gtk.Container):
else: else:
self.destroy() self.destroy()
# Make the exported object inaccessible
dbus.service.Object.remove_from_connection(self._bus)
def __realize_cb(self, window): def __realize_cb(self, window):
wm.set_bundle_id(window.window, self.get_bundle_id()) wm.set_bundle_id(window.window, self.get_bundle_id())
wm.set_activity_id(window.window, str(self._activity_id)) wm.set_activity_id(window.window, str(self._activity_id))