[pitivi] ProjectSettings: update PAR when SAR changes and DAR is selected, and vice versa
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ProjectSettings: update PAR when SAR changes and DAR is selected, and vice versa
- Date: Fri, 10 Dec 2010 17:49:56 +0000 (UTC)
commit 64716b77ca2824a5796af84f8339c57e782a23a2
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 19 18:25:00 2010 +0000
ProjectSettings: update PAR when SAR changes and DAR is selected, and vice versa
pitivi/ui/projectsettings.py | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/projectsettings.py b/pitivi/ui/projectsettings.py
index 68cc316..3223eff 100644
--- a/pitivi/ui/projectsettings.py
+++ b/pitivi/ui/projectsettings.py
@@ -144,6 +144,20 @@ class ProjectSettingsDialog(GladeWindow):
self.wg.add_edge(self.dar_fraction_widget, self.par_fraction_widget,
edge_func=self.updateParFromDar)
+ # update PAR when width/height change and the DAR checkbutton is
+ # selected
+ self.wg.add_edge(self.width_spinbutton, self.par_fraction_widget,
+ predicate=self.darSelected, edge_func=self.updateParFromDar)
+ self.wg.add_edge(self.height_spinbutton, self.par_fraction_widget,
+ predicate=self.darSelected, edge_func=self.updateParFromDar)
+
+ # update DAR when width/height change and the PAR checkbutton is
+ # selected
+ self.wg.add_edge(self.width_spinbutton, self.dar_fraction_widget,
+ predicate=self.parSelected, edge_func=self.updateDarFromPar)
+ self.wg.add_edge(self.height_spinbutton, self.dar_fraction_widget,
+ predicate=self.parSelected, edge_func=self.updateDarFromPar)
+
self.updateUI()
def constrained(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]