[pitivi] ruler: Seeks need to be on idle to compress the seeks while scrubbing
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ruler: Seeks need to be on idle to compress the seeks while scrubbing
- Date: Thu, 19 Sep 2013 14:53:36 +0000 (UTC)
commit 48da2d3a9924f2bb1268887e3bfe4885b2ccc6a3
Author: Luis de Bethencourt <luis debethencourt com>
Date: Mon Sep 16 13:02:36 2013 -0400
ruler: Seeks need to be on idle to compress the seeks while scrubbing
pitivi/timeline/ruler.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/ruler.py b/pitivi/timeline/ruler.py
index ca6208f..2023977 100644
--- a/pitivi/timeline/ruler.py
+++ b/pitivi/timeline/ruler.py
@@ -163,7 +163,7 @@ class ScaleRuler(Gtk.DrawingArea, Zoomable, Loggable):
self.debug("button pressed at x:%d", event.x)
self.pressed = True
position = self.pixelToNs(event.x + self.pixbuf_offset)
- self._seeker.seek(position)
+ self._seeker.seek(position, on_idle=True)
return True
def do_button_release_event(self, event):
@@ -175,7 +175,7 @@ class ScaleRuler(Gtk.DrawingArea, Zoomable, Loggable):
position = self.pixelToNs(event.x + self.pixbuf_offset)
if self.pressed:
self.debug("motion at event.x %d", event.x)
- self._seeker.seek(position)
+ self._seeker.seek(position, on_idle=True)
human_time = beautify_length(position)
cur_frame = int(position / self.ns_per_frame) + 1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]