[pitivi] RenderDialog: update summary whenever anything changes
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] RenderDialog: update summary whenever anything changes
- Date: Fri, 10 Dec 2010 17:51:12 +0000 (UTC)
commit 0de768a69ecef38b8b9f7169437a385d1371052d
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 19 19:02:19 2010 +0000
RenderDialog: update summary whenever anything changes
pitivi/ui/encodingdialog.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index 5914051..f52b6a4 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -112,7 +112,11 @@ class EncodingDialog(GladeWindow, Renderer):
self._displaySettings()
self.window.connect("delete-event", self._deleteEventCb)
+ self.settings.connect("settings-changed", self._settingsChanged)
+ self.settings.connect("encoders-changed", self._settingsChanged)
+ def _settingsChanged(self, settings):
+ self._updateSummary()
def _displaySettings(self):
@@ -129,6 +133,8 @@ class EncodingDialog(GladeWindow, Renderer):
self.muxercombobox.set_model(factorylist(
self.settings.muxers))
+ # Summary
+ self._updateSummary()
def updateFilename(self, name):
self.fileentry.set_text(name + extension_for_muxer(self.settings.muxer))
@@ -145,6 +151,12 @@ class EncodingDialog(GladeWindow, Renderer):
self.settings.setEncoders(muxer=muxer)
self.updateFilename(basename)
+
+ def _updateSummary(self):
+ text = self.settings.getVideoDescription() + "\n\n" +\
+ self.settings.getAudioDescription()
+ self.summary_label.props.label = text
+
self.startAction()
def _settingsButtonClickedCb(self, unused_button):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]