From 10d4072e5ca202de9d8819b56f5d5e8717e0ef9e Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Wed, 13 Oct 2010 14:20:23 +0000 Subject: 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. --- diff --git a/toolbar.py b/toolbar.py index 75243c7..6b85077 100644 --- a/toolbar.py +++ b/toolbar.py @@ -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) -- cgit v0.9.1