[pitivi] encodingdialog: Make sure that the combobox we ellipsize are not empty



commit d7e44ddf6cce511374a125da4d48e7feb4b9106a
Author: Thibault Saunier <thibault saunier collabora co uk>
Date:   Wed May 18 14:36:01 2011 -0400

    encodingdialog: Make sure that the combobox we ellipsize are not empty
    
    Avoid a GtkWarning.

 pitivi/ui/encodingdialog.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index 87b9f3b..213b3d7 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -129,10 +129,6 @@ class EncodingDialog(GladeWindow, Renderer, Loggable):
         self.preferred_vencoder = self.settings.vencoder
         self.preferred_aencoder = self.settings.aencoder
 
-        ellipsize(self.muxercombobox)
-        ellipsize(self.audio_encoder_combo)
-        ellipsize(self.video_encoder_combo)
-
         self.timestarted = 0
         self._displaySettings()
 
@@ -166,6 +162,10 @@ class EncodingDialog(GladeWindow, Renderer, Loggable):
         set_combo_value(self.muxercombobox,
             gst.element_factory_find(self.settings.muxer))
 
+        ellipsize(self.muxercombobox)
+        ellipsize(self.audio_encoder_combo)
+        ellipsize(self.video_encoder_combo)
+
         # File
         self.filebutton.set_current_folder(self.app.settings.lastExportFolder)
         self.updateFilename(self.project.name)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]