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-03-10 10:30:32 (GMT)
committer DonScorgie <DonScorgie@8f060a39-251c-0410-b1f3-431655927647>2007-03-10 10:30:32 (GMT)
commit6586750229de7681d8d452f61f079640dec06bfc (patch)
treed93fe8f0681972469bd93571c7d15a8186e563c8 /src/TextThought.py
parenteb1f8cd71bc29af1b0d44869f5cca84d43b6d0f5 (diff)
* src/MainWindow.py:
* src/MMapArea.py: * src/TextThought.py: * data/labyrinth-ui.xml: Add initial support for scaling canvas and translating on canvas (infinte-scroll canvas) git-svn-id: http://labyrinth.googlecode.com/svn/trunk@151 8f060a39-251c-0410-b1f3-431655927647
Diffstat (limited to 'src/TextThought.py')
-rw-r--r--src/TextThought.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TextThought.py b/src/TextThought.py
index 0c4b249..0d67a16 100644
--- a/src/TextThought.py
+++ b/src/TextThought.py
@@ -542,7 +542,8 @@ class TextThought (BaseThought.BaseThought):
self.emit ("create_link", \
(self.ul[0]-((self.ul[0]-self.lr[0]) / 2.), self.ul[1]-((self.ul[1]-self.lr[1]) / 2.)))
return True
- elif event.state & gtk.gdk.BUTTON1_MASK and not self.editing and mode == BaseThought.MODE_EDITING:
+ elif event.state & gtk.gdk.BUTTON1_MASK and not self.editing and \
+ mode == BaseThought.MODE_EDITING and not event.state & gtk.gdk.CONTROL_MASK:
self.emit ("create_link", \
(self.ul[0]-((self.ul[0]-self.lr[0]) / 2.), self.ul[1]-((self.ul[1]-self.lr[1]) / 2.)))
self.emit ("update_view")