[pitivi] RenderDialog: update filename when muxer changes
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] RenderDialog: update filename when muxer changes
- Date: Fri, 10 Dec 2010 17:51:07 +0000 (UTC)
commit 651f377eabaaeca8436960797dd84e9b603cffc5
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 19 19:01:06 2010 +0000
RenderDialog: update filename when muxer changes
pitivi/ui/encodingdialog.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index cda2e53..5914051 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -130,12 +130,21 @@ class EncodingDialog(GladeWindow, Renderer):
self.settings.muxers))
+ def updateFilename(self, name):
+ self.fileentry.set_text(name + extension_for_muxer(self.settings.muxer))
+
def updatePosition(self, fraction, text):
self.progressbar.set_fraction(fraction)
self.window.set_title(_("%.0f%% rendered" % (fraction*100)))
if text is not None:
self.progressbar.set_text(_("About %s left") % text)
+ def _muxerComboChangedCb(self, muxer):
+ basename = os.path.splitext(self.fileentry.get_text())[0]
+ muxer = get_combo_value(muxer).get_name()
+
+ self.settings.setEncoders(muxer=muxer)
+ self.updateFilename(basename)
self.startAction()
def _settingsButtonClickedCb(self, unused_button):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]