Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/tray.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/graphics/tray.py')
-rw-r--r--sugar/graphics/tray.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sugar/graphics/tray.py b/sugar/graphics/tray.py
index fc6bb14..99e7465 100644
--- a/sugar/graphics/tray.py
+++ b/sugar/graphics/tray.py
@@ -116,8 +116,7 @@ class HTray(gtk.HBox):
def add_item(self, item, index=-1):
self._viewport.traybar.insert(item, index)
- def remove_item(self, index):
- item = self._viewport.traybar.get_nth_item(index)
+ def remove_item(self, item):
self._viewport.traybar.remove(item)
def get_item_index(self, item):