Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/draggableobject.py
diff options
context:
space:
mode:
Diffstat (limited to 'draggableobject.py')
-rw-r--r--draggableobject.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/draggableobject.py b/draggableobject.py
index 8f1ea6a..ac9be90 100644
--- a/draggableobject.py
+++ b/draggableobject.py
@@ -88,6 +88,8 @@ class DraggableObject(Object):
if self.container.drag_object == self:
if event.type == gtk.gdk.MOTION_NOTIFY:
+ self.container.drag_object.dragged = True
+
if drag_type == 'rotate':
self.rotate(self.press_angle + math.atan2(epos.y - self.pos.y, epos.x - self.pos.x) - \
math.atan2(self.press_pos.y - self.pos.y, self.press_pos.x - self.pos.x) )
@@ -125,6 +127,8 @@ class DraggableObject(Object):
self.container.queue_draw()
elif event.type == gtk.gdk.BUTTON_RELEASE:
+ self.container.drag_object.dragged = False
+
# Process dropping.
if self.drop_target:
self.drop_target.contents = self