[pitivi] project: Emit "rendering-settings-changed" when the pixel aspect ratio changes



commit 64012613c11f7b1a942d8b1a459fc9143118d449
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Fri Jan 10 21:11:53 2014 -0500

    project: Emit "rendering-settings-changed" when the pixel aspect ratio changes
    
    Otherwise aspect ratio changes would not always get applied.
    
    Fixes bug #721973

 pitivi/project.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 186534b..253568c 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -708,7 +708,8 @@ class Project(Loggable, GES.Project):
 
     @videopar.setter
     def videopar(self, value):
-        self.set_video_restriction_value("pixel-aspect-ratio", value)
+        if self.set_video_restriction_value("pixel-aspect-ratio", value):
+            self._emitChange("rendering-settings-changed", "pixel-aspect-ratio", value)
 
     @property
     def aspect_ratio(self):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]