Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/optionmenu.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/graphics/optionmenu.py')
-rw-r--r--sugar/graphics/optionmenu.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/sugar/graphics/optionmenu.py b/sugar/graphics/optionmenu.py
index 3ffaf4a..197669f 100644
--- a/sugar/graphics/optionmenu.py
+++ b/sugar/graphics/optionmenu.py
@@ -104,16 +104,6 @@ class OptionMenu(hippo.CanvasBox, hippo.CanvasItem):
self._menu.add_item(menu_item)
- def do_get_width_request(self):
- max_width = max(self._canvas_text.do_get_content_width_request(self._canvas_text),
- self._menu.do_get_content_width_request(self._menu))
-
- self._canvas_text.props.box_width = max_width
-
- current_width = hippo.CanvasBox.do_get_width_request(self)
- self._menu.props.box_width = current_width
- return current_width
-
def add_separator(self):
self._menu.add_separator()