diff options
Diffstat (limited to 'src/sugar3/graphics/palettewindow.py')
-rw-r--r-- | src/sugar3/graphics/palettewindow.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sugar3/graphics/palettewindow.py b/src/sugar3/graphics/palettewindow.py index 57d7932..82c434a 100644 --- a/src/sugar3/graphics/palettewindow.py +++ b/src/sugar3/graphics/palettewindow.py @@ -386,7 +386,7 @@ class PaletteWindow(Gtk.Window): self.emit('popdown') def get_rect(self): - win_x, win_y = self.window.get_origin() + win_x, win_y = self.get_window().get_origin() rectangle = self.get_allocation() x = win_x + rectangle.x @@ -715,8 +715,8 @@ class WidgetInvoker(Invoker): def get_rect(self): allocation = self._widget.get_allocation() - if self._widget.window is not None: - x, y = self._widget.window.get_origin() + if self._widget.get_window() is not None: + x, y = self._widget.get_window().get_origin() else: logging.warning( "Trying to position palette with invoker that's not realized.") @@ -896,8 +896,8 @@ class CellRendererInvoker(Invoker): def get_rect(self): allocation = self._tree_view.get_allocation() - if self._tree_view.window is not None: - x, y = self._tree_view.window.get_origin() + if self._tree_view.get_window() is not None: + x, y = self._tree_view.get_window().get_origin() else: logging.warning( "Trying to position palette with invoker that's not realized.") |