Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/TextThought.py
diff options
context:
space:
mode:
authorDonScorgie <DonScorgie@8f060a39-251c-0410-b1f3-431655927647>2007-04-06 10:12:35 (GMT)
committer DonScorgie <DonScorgie@8f060a39-251c-0410-b1f3-431655927647>2007-04-06 10:12:35 (GMT)
commit88b337e66d7c9e5c2f88b27a66ca8b253de6801c (patch)
tree438dc5abb1a27e6a8f6b92669a63fd11de483068 /src/TextThought.py
parentf4be743e61139f6c7f1561cf564a9c16bc786c96 (diff)
Merge Windows-support branch:
Windows/* added src/{Browser,labyrinth,MainWindow,TextThought,utils}.py have minor alterations git-svn-id: http://labyrinth.googlecode.com/svn/trunk@163 8f060a39-251c-0410-b1f3-431655927647
Diffstat (limited to 'src/TextThought.py')
-rw-r--r--src/TextThought.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/TextThought.py b/src/TextThought.py
index 4763471..37fe601 100644
--- a/src/TextThought.py
+++ b/src/TextThought.py
@@ -28,6 +28,7 @@ import utils
import BaseThought
import prefs
import UndoManager
+import os
import xml.dom.minidom as dom
import xml.dom
@@ -772,8 +773,9 @@ class TextThought (BaseThought.BaseThought):
self.index += loc[1]
self.bindex = self.bindex_from_index (self.index)
self.end_index = self.index
- clip = gtk.Clipboard (selection="PRIMARY")
- self.paste_text (clip)
+ if os.name != 'nt':
+ clip = gtk.Clipboard (selection="PRIMARY")
+ self.paste_text (clip)
elif event.button == 3:
self.emit ("popup_requested", (event.x, event.y), 1)
self.recalc_edges()