From 553709c8698faac952012524f1b258fecad0d7e8 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Fri, 7 Sep 2007 11:26:11 +0200 Subject: [PATCH] Fix when item is removed from clipboard tray --- shell/view/frame/clipboardbox.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shell/view/frame/clipboardbox.py b/shell/view/frame/clipboardbox.py index a083b760..9c6d8591 100644 --- a/shell/view/frame/clipboardbox.py +++ b/shell/view/frame/clipboardbox.py @@ -121,9 +121,7 @@ class ClipboardBox(hippo.CanvasBox): def _object_deleted_cb(self, cb_service, object_id): icon = self._icons[object_id] - position = self.get_children().index(icon) - self.remove(icon) - + self._tray.remove_item(icon) del self._icons[object_id] logging.debug('ClipboardBox: ' + object_id + ' was deleted.')