diff --git a/sugar/graphics/canvasicon.py b/sugar/graphics/canvasicon.py index 020e966d..fb4974a9 100644 --- a/sugar/graphics/canvasicon.py +++ b/sugar/graphics/canvasicon.py @@ -296,8 +296,7 @@ class CanvasIcon(hippo.CanvasBox, hippo.CanvasItem): if [x, y] == [None, None]: context = self.get_context() - #[x, y] = context.translate_to_screen(self) - [x, y] = context.translate_to_widget(self) + [x, y] = context.translate_to_screen(self) # TODO: Any better place to do this? popup.props.box_width = max(popup.props.box_width, diff --git a/sugar/graphics/optionmenu.py b/sugar/graphics/optionmenu.py index 2e6e4561..f2e4603c 100644 --- a/sugar/graphics/optionmenu.py +++ b/sugar/graphics/optionmenu.py @@ -150,8 +150,7 @@ class OptionMenu(hippo.CanvasBox, hippo.CanvasItem): self._menu.hide() else: context = self._round_box.get_context() - #[x, y] = context.translate_to_screen(self._round_box) - [x, y] = context.translate_to_widget(self._round_box) + [x, y] = context.translate_to_screen(self._round_box) # TODO: Any better place to do this? self._menu.props.box_width = self.get_width_request()