Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2010-10-13 14:20:23 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2010-10-18 18:07:30 (GMT)
commit10d4072e5ca202de9d8819b56f5d5e8717e0ef9e (patch)
tree14aa69eff77a7ac235aa4e6d98dbe7aa67abfc98
parent4b517db5ba47547004279668099553f5bff21b40 (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.py2
1 files changed, 1 insertions, 1 deletions
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)