diff options
author | Gonzalo Odiard <godiard@sugarlabs.org> | 2010-10-13 14:20:23 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@sugarlabs.org> | 2010-10-18 18:07:30 (GMT) |
commit | 10d4072e5ca202de9d8819b56f5d5e8717e0ef9e (patch) | |
tree | 14aa69eff77a7ac235aa4e6d98dbe7aa67abfc98 | |
parent | 4b517db5ba47547004279668099553f5bff21b40 (diff) |
fix SL #2001 - Write does not pass parent window xid to ObjectChooser
This is a regresion, probably introduced when changed the toolbar.
If the parent window is not passed, the Object Chooser appears
over other activities when you change from Write to another.
-rw-r--r-- | toolbar.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -234,7 +234,7 @@ class InsertToolbar(gtk.Toolbar): def cb(object): logging.debug('ObjectChooser: %r' % object) self._abiword_canvas.insert_image(object.file_path, True) - chooser.pick(what=chooser.IMAGE, cb=cb) + chooser.pick(parent=self._abiword_canvas.get_toplevel(), what=chooser.IMAGE, cb=cb) def _table_cb(self, abi, rows, cols): self._abiword_canvas.insert_table(rows, cols) |