Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Area.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Area.py b/Area.py
index 9e754d1..23bc1e9 100644
--- a/Area.py
+++ b/Area.py
@@ -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)