diff options
Diffstat (limited to 'src/sugar3/graphics/palette.py')
-rw-r--r-- | src/sugar3/graphics/palette.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sugar3/graphics/palette.py b/src/sugar3/graphics/palette.py index aed1744..6c24d27 100644 --- a/src/sugar3/graphics/palette.py +++ b/src/sugar3/graphics/palette.py @@ -350,8 +350,9 @@ class Palette(PaletteWindow): def _update_accept_focus(self): accept_focus = len(self._content.get_children()) - if self.window: - self.window.set_accept_focus(accept_focus) + window = self.get_window() + if window: + window.set_accept_focus(accept_focus) def __realize_cb(self, widget): self._update_accept_focus() |