[pitivi/ges: 115/287] Make the Media Library previewer refresh faster
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 115/287] Make the Media Library previewer refresh faster
- Date: Thu, 15 Mar 2012 16:35:29 +0000 (UTC)
commit 3700c352a2c9cc8372584a2daaeb0dc97820d472
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Sat Dec 24 02:12:07 2011 -0500
Make the Media Library previewer refresh faster
pitivi/ui/filechooserpreview.py | 2 +-
pitivi/ui/mainwindow.py | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/filechooserpreview.py b/pitivi/ui/filechooserpreview.py
index 7e25d7b..bdaac82 100644
--- a/pitivi/ui/filechooserpreview.py
+++ b/pitivi/ui/filechooserpreview.py
@@ -259,7 +259,7 @@ class PreviewWidget(gtk.VBox, Loggable):
self.is_playing = True
self.play_button.set_stock_id(gtk.STOCK_MEDIA_PAUSE)
#Make sure position is updated regularly
- gobject.timeout_add(1000, self._update_position)
+ gobject.timeout_add(500, self._update_position)
def clear_preview(self):
self.log("Reset PreviewWidget ")
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index c650003..98e0722 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -1077,6 +1077,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
window.destroy()
def _viewUri(self, path):
+ """ Preview a media file from the media library """
preview_window = gtk.Window()
preview_window.set_title(_("Preview - click outside to close"))
preview_window.set_transient_for(self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]