[pitivi] UI: Adjust Viewer DAR whenever the project settings change. Fixes #572099
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] UI: Adjust Viewer DAR whenever the project settings change. Fixes #572099
- Date: Tue, 12 May 2009 12:53:02 -0400 (EDT)
commit 019cc43d0989cf549251c3aeac7259f750feb6c7
Author: Edward Hervey <bilboed bilboed com>
Date: Tue May 12 18:50:32 2009 +0200
UI: Adjust Viewer DAR whenever the project settings change. Fixes #572099
---
pitivi/ui/mainwindow.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 6918d05..b8003f2 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -750,6 +750,9 @@ class PitiviMainWindow(gtk.Window, Loggable):
@handler(project, "settings-changed")
def _settingsChangedCb(self, project):
self.rate = float(1 / self.project.settings.videorate)
+ if self.viewer.action == self.project.view_action:
+ sett = self.project.getSettings()
+ self.viewer.setDisplayAspectRatio(float(sett.videopar * sett.videowidth) / float(sett.videoheight))
@handler(project, "missing-plugins")
def _projectMissingPluginsCb(self, project, uri, detail, message):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]