[pitivi] ProjectSettings: update settings when OK button is clicked
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ProjectSettings: update settings when OK button is clicked
- Date: Fri, 10 Dec 2010 17:50:01 +0000 (UTC)
commit 52d806b6e4907a75ae4f0b3ef86a2b4f6af859a6
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 19 18:26:06 2010 +0000
ProjectSettings: update settings when OK button is clicked
pitivi/ui/projectsettings.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/projectsettings.py b/pitivi/ui/projectsettings.py
index 3223eff..2af0919 100644
--- a/pitivi/ui/projectsettings.py
+++ b/pitivi/ui/projectsettings.py
@@ -242,7 +242,19 @@ class ProjectSettingsDialog(GladeWindow):
self._selectDarRadiobuttonToggledCb(self.select_dar_radiobutton)
def updateSettings(self):
+ width = int(self.width_spinbutton.get_value())
+ height = int(self.height_spinbutton.get_value())
+ par = self.par_fraction_widget.getWidgetValue()
+ frame_rate = self.frame_rate_fraction_widget.getWidgetValue()
+
+ channels = get_combo_value(self.channels_combo)
+ sample_rate = get_combo_value(self.sample_rate_combo)
+ sample_depth = get_combo_value(self.sample_depth_combo)
+
+ self.settings.setVideoProperties(width, height, frame_rate, par)
+ self.settings.setAudioProperties(channels, sample_rate, sample_depth)
+ self.project.setSettings(self.settings)
def _responseCb(self, unused_widget, response):
if response == gtk.RESPONSE_OK:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]