~timo-jyrinki/ubuntu/trusty/pitivi/merge_debian_0.93-3

« back to all changes in this revision

Viewing changes to pitivi/ui/timeline.py

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-09-13 22:02:24 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100913220224-gu43e6srha3sih5h
Tags: 0.13.4.3-1ubuntu1
New version update

Show diffs side-by-side

added added

removed removed

Lines of Context:
423
423
 
424
424
    def _dragDropCb(self, widget, context, x, y, timestamp):
425
425
        self.app.action_log.begin("add clip")
 
426
        self.timeline.disableUpdates()
426
427
        self._add_temp_source()
427
428
        focus = self._temp_objects[0]
428
429
        self._move_context = MoveContext(self.timeline,
429
430
                focus, set(self._temp_objects[1:]))
430
431
        self._move_temp_source(self.hadj.props.value + x, y)
431
432
        self._move_context.finish()
 
433
        self.timeline.enableUpdates()
432
434
        self.app.action_log.commit()
433
435
        context.drop_finish(True, timestamp)
434
436
        self._factories = None
652
654
 
653
655
    def split(self, action):
654
656
        self.app.action_log.begin("split")
 
657
        self.timeline.disableUpdates()
655
658
        self.timeline.split(self._position)
 
659
        self.timeline.enableUpdates()
656
660
        self.app.action_log.commit()
657
661
        # work-around for 603149
658
662
        self.project.seeker.seek(self._position)