[pitivi] RenderDialog: implement ProjectSettings button
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] RenderDialog: implement ProjectSettings button
- Date: Fri, 10 Dec 2010 17:52:37 +0000 (UTC)
commit 561a82cfec524e3f8e3758323140d43b74b48fdd
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Mon Nov 22 13:59:54 2010 +0000
RenderDialog: implement ProjectSettings button
pitivi/ui/encodingdialog.py | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index 0b2ec42..9a748ba 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -201,6 +201,20 @@ class EncodingDialog(GladeWindow, Renderer, Loggable):
self.resolution_label.set_text("%d x %d" % (width, height))
return width, height
+ def _projectSettingsButtonClickedCb(self, button):
+ from pitivi.ui.projectsettings import ProjectSettingsDialog
+ self.settings.setVideoProperties(width=self.width, height=self.height)
+ d = ProjectSettingsDialog(self.window, self.project)
+ d.window.connect("destroy", self._projectSettingsDestroyCb)
+ d.show()
+
+ def _projectSettingsDestroyCb(self, dialog):
+ self.width = self.settings.videowidth
+ self.height = self.settings.videoheight
+ width, height = self.updateResolution()
+ self.settings.setVideoProperties(width=width, height=height)
+ self._displaySettings()
+
def _frameRateComboChangedCb(self, combo):
framerate = get_combo_value(combo)
self.settings.setVideoProperties(framerate=framerate)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]