Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'tutorius/actions.py')
-rw-r--r--tutorius/actions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tutorius/actions.py b/tutorius/actions.py
index bb15459..75c9c9b 100644
--- a/tutorius/actions.py
+++ b/tutorius/actions.py
@@ -43,6 +43,7 @@ class DragWrapper(object):
self._handles = [] # event handlers
self._dragging = False # whether a drag is in progress
self.position = position # position of the widget
+ self.moved = False
self.draggable = draggable
@@ -68,6 +69,7 @@ class DragWrapper(object):
xparent, yparent = widget.translate_coordinates(widget.parent,
xparent, yparent)
self.position = (xparent-xrel, yparent-yrel)
+ self.moved = True
self._widget.parent.move(self._eventbox, *self.position)
self._widget.parent.move(self._widget, *self.position)
self._widget.parent.queue_draw()