Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/movableobject.py
diff options
context:
space:
mode:
authorpmoxhay <pmoxhay@earthlink.net>2009-02-06 01:19:19 (GMT)
committer pmoxhay <pmoxhay@earthlink.net>2009-02-06 01:19:19 (GMT)
commit4b6811efb42b53846704c9fe05b8baee3189e334 (patch)
treea3cb2ad56b6384c778e85663b7e28dbbc25f2a94 /movableobject.py
parent16eef3a7f260515591ffc2e579a2a4bc9d8ddc11 (diff)
Fixed bug that left multiple copies of line segment when move from one drag target to the other.
Improved drawing of hints.
Diffstat (limited to 'movableobject.py')
-rw-r--r--movableobject.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/movableobject.py b/movableobject.py
index 1749c4d..01355e6 100644
--- a/movableobject.py
+++ b/movableobject.py
@@ -150,6 +150,7 @@ class MovableObject(Object):
if o.contains(self.get_bounds()):
inside_drop_target = True
+ #if not has_drop_target:
if o.processDrop(self):
return True
@@ -174,15 +175,16 @@ class MovableObject(Object):
self.container.queue_cursor(cursor_type)
if event.type == gtk.gdk.BUTTON_PRESS:
- #self.container.select_object(self)
self.select_by_button_press()
#Check whether the button press is inside a drop target.
+ # TODO- Check whether this makes multiple copies of movable in drop target.
for o in self.drop_targets:
if o.contains(self.get_bounds()):
+ self.drop_target = None
o.full = False
o.contents = None
-
+
self.drag_type = self.get_drag_type(event)
if self.drag_type:
@@ -212,7 +214,6 @@ class MovableObject(Object):
elif key_name == 'Down' or key_name == 'Right':
self.rotate(self.angle + RADIAL_GRID_SIZE)
- # TODO - Check this works.
elif key_name == 'KP_Page_Up':
self.rotate(self.angle + RADIAL_GRID_SIZE)