Fix when item is removed from clipboard tray

This commit is contained in:
Simon Schampijer 2007-09-07 11:26:11 +02:00
parent 7f8b000a92
commit 553709c869

View File

@ -121,9 +121,7 @@ class ClipboardBox(hippo.CanvasBox):
def _object_deleted_cb(self, cb_service, object_id): def _object_deleted_cb(self, cb_service, object_id):
icon = self._icons[object_id] icon = self._icons[object_id]
position = self.get_children().index(icon) self._tray.remove_item(icon)
self.remove(icon)
del self._icons[object_id] del self._icons[object_id]
logging.debug('ClipboardBox: ' + object_id + ' was deleted.') logging.debug('ClipboardBox: ' + object_id + ' was deleted.')