diff options
author | florent <florent.pigout@gmail.com> | 2011-04-30 16:08:58 (GMT) |
---|---|---|
committer | florent <florent.pigout@gmail.com> | 2011-04-30 16:08:58 (GMT) |
commit | 0d0a4eaec938e523f73b8608a89fa235e6796776 (patch) | |
tree | 9b70a5dcc5af689ed1668493a62c25ca85ebf592 | |
parent | fc3389b2496bb58e3730c81a803a28e0932988e1 (diff) |
dnd enhancement
-rw-r--r-- | atoidejouer/ui/screens.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/atoidejouer/ui/screens.py b/atoidejouer/ui/screens.py index 728e0ba..a58a8f1 100644 --- a/atoidejouer/ui/screens.py +++ b/atoidejouer/ui/screens.py @@ -52,6 +52,11 @@ def _on_drag_finish(image, event, scene, sequence_name, frame, filename, scene.refresh() # get current screen _screen = scene.toolbar.activity.get_current_screen() + # update timeline + if hasattr(_screen, 'timeline'): + _screen.timeline.set_active_sequence(sequence_name) + else: + pass # update position in panel if hasattr(_screen, 'panel'): _screen.panel.refresh() @@ -372,7 +377,6 @@ class ScreenStory(graphics.Scene): pass else: _image.connect('on-click', _on_click, self, sequence_name) - _image.connect('on-drag-start', _on_click, self, sequence_name) # do add self.add_child(_image) # .. |