diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2013-11-18 21:51:45 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2013-11-18 22:33:07 (GMT) |
commit | 49c965a3844e4cb63a90fc862bb2b37d5db7e739 (patch) | |
tree | dc4aa1591e363800afff5c37646c674a5f3024ac | |
parent | 0b2f5fbaff31bf9f5dab11cf156625a534c98231 (diff) |
Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>
-rw-r--r-- | Area.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1122,6 +1122,16 @@ class Area(Gtk.DrawingArea): if selection is not None: for uri in selection.get_uris(): self.load_image(urlparse(uri).path, self) + + elif clipBoard.wait_is_text_available(): + logging.debug('Area.paste(self): Wait is text available') + selection = clipBoard.wait_for_text() + props = self.tool + props['name'] = 'text' + self.set_tool(props) + self.tool_start(0, 0, False) + self.activity.textview.get_buffer().set_text(selection) + else: tempPath = os.path.join("/tmp", "tempFile") tempPath = os.path.abspath(tempPath) |