diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-08-29 12:08:12 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-08-29 12:08:12 (GMT) |
commit | 46b3b96e96067acbdbb5ec5e28ec39f420cc3104 (patch) | |
tree | 2512d0aecec88e34f6de5746ebe70f88f8c0a86c /sugar/graphics | |
parent | 710f3eba00182094be29206696f3f9bef174269c (diff) |
Make remove_item take an item instead of an index.
Diffstat (limited to 'sugar/graphics')
-rw-r--r-- | sugar/graphics/tray.py | 3 |
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): |