diff options
author | mike <michael.jmontcalm@gmail.com> | 2009-12-05 22:43:48 (GMT) |
---|---|---|
committer | erick <erick@sugar-dev-erick.(none)> | 2009-12-06 05:17:39 (GMT) |
commit | 9ca66383288f7920b4b4b72c3cca88fbdc6446e7 (patch) | |
tree | d92f273625ba8b181b09751d12c1d228c5ca5a57 /tutorius/actions.py | |
parent | 3acfd501e49250f3bd3dbf3dae5648aab4055be7 (diff) |
Creator : Corrected the drag'n drop bug, corrected properties update bug
Diffstat (limited to 'tutorius/actions.py')
-rw-r--r-- | tutorius/actions.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tutorius/actions.py b/tutorius/actions.py index 7e3199b..a809980 100644 --- a/tutorius/actions.py +++ b/tutorius/actions.py @@ -95,11 +95,13 @@ class DragWrapper(object): xparent,yparent,mods = rootwin.get_pointer() self.position = (int(xparent-xrel), int(yparent-yrel)) - self.LOGGER.debug("%s drag-end pos: (%s,%s)"%(str(widget),self.position)) + self.LOGGER.debug("%s drag-end pos: %s"%(str(widget),str(self.position))) self._widget.parent.move(self._eventbox, *self.position) self._widget.parent.move(self._widget, *self.position) self._widget.parent.queue_draw() + self.update_action_cb('position', self.position) + def set_draggable(self, value): """Setter for the draggable property""" @@ -194,9 +196,9 @@ class Action(TPropContainer): def notify(self): LOGGER.debug("Action :: Notifying creator with new values in dict : %s"%(str(self._diff_dict))) # If a notification callback was registered - if self._property_update_cb: + if self._properties_updated_cb: # Propagate it - self._property_update_cb(self._diff_dict) + self._properties_updated_cb(self._diff_dict) # Empty the diff dict as we just synchronized with the creator self._diff_dict.clear() |