Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorC. Scott Ananian <cscott@cscott.net>2011-11-10 23:34:19 (GMT)
committer C. Scott Ananian <cscott@cscott.net>2011-11-10 23:34:19 (GMT)
commitb12bba9b4af86a39130665cc1542a8b1c67e94f5 (patch)
tree7ce27bd84cf27d9f571a51d2da50b43af0e4e0ff
parent7eea429e0ccce5433b82523ed7809e2a1abd8bf3 (diff)
Gdk.CONTROL_MASK -> Gdk.ModifierType.CONTROL_MASK. (bugfix)
-rw-r--r--TurtleArt/tawindow.py2
-rw-r--r--util/gtkcompat.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 776b52f..084e47b 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -1018,7 +1018,7 @@ class TurtleArtWindow():
self.mouse_flag = 1
self.mouse_x = x
self.mouse_y = y
- self.button_press(event.get_state() & Gdk.EventMask.CONTROL_MASK, x, y)
+ self.button_press(event.get_state() & Gdk.ModifierType.CONTROL_MASK, x, y)
return True
def button_press(self, mask, x, y):
diff --git a/util/gtkcompat.py b/util/gtkcompat.py
index 87622b8..06df7d3 100644
--- a/util/gtkcompat.py
+++ b/util/gtkcompat.py
@@ -60,12 +60,12 @@ except ValueError, ImportError:
BUTTON_RELEASE_MASK = Gdk.BUTTON_RELEASE_MASK
POINTER_MOTION_MASK = Gdk.POINTER_MOTION_MASK
KEY_PRESS_MASK = Gdk.KEY_PRESS_MASK
- CONTROL_MASK = Gdk.CONTROL_MASK
VISIBILITY_NOTIFY_MASK = Gdk.VISIBILITY_NOTIFY_MASK
Gdk.EventMask = GdkEventMask
class GdkModifierType:
MOD1_MASK = Gdk.MOD1_MASK
+ CONTROL_MASK = Gdk.CONTROL_MASK
Gdk.ModifierType = GdkModifierType
class GdkPixbuf: