diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-02-21 20:12:27 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-02-21 20:12:27 (GMT) |
commit | b452b7d718f06703c682e935d1bf6d28a425d108 (patch) | |
tree | ef3ff115aac60e4703bdc02fb3b0b2ae6ce06d97 /sugar/graphics | |
parent | 9ba487fa1f5ea1e624eb84be225940096d0185cb (diff) |
Make ClipboardIcon use the new Menu.
Diffstat (limited to 'sugar/graphics')
-rw-r--r-- | sugar/graphics/menu.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sugar/graphics/menu.py b/sugar/graphics/menu.py index e32eabe..9dfc6f3 100644 --- a/sugar/graphics/menu.py +++ b/sugar/graphics/menu.py @@ -98,6 +98,9 @@ class Menu(Popup): item.connect('button-press-event', self._item_button_press_event_cb) self.append(item) + def remove_item(self, item): + self.remove(item) + def add_separator(self): box = hippo.CanvasBox() box.props.background_color = color.MENU_SEPARATOR.get_int() |