[pitivi] RenderDialog: ellipsize the text in encoder combo boxes
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] RenderDialog: ellipsize the text in encoder combo boxes
- Date: Fri, 10 Dec 2010 17:50:51 +0000 (UTC)
commit 935225c44a14e595cba257bdb64b54861c7bac83
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 19 18:51:06 2010 +0000
RenderDialog: ellipsize the text in encoder combo boxes
pitivi/ui/encodingdialog.py | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index 9916e6e..126e771 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -31,8 +31,15 @@ from gettext import gettext as _
import pitivi.configure as configure
from pitivi.log.loggable import Loggable
+from pitivi.ui.gstwidget import GstElementSettingsDialog
from pitivi.ui.glade import GladeWindow
from pitivi.actioner import Renderer
+import pango
+
+def ellipsize(combo):
+ cell_view = combo.get_children()[0]
+ cell_renderer = cell_view.get_cell_renderers()[0]
+ cell_renderer.props.ellipsize = pango.ELLIPSIZE_END
class EncodingDialog(GladeWindow, Renderer):
""" Encoding dialog box """
@@ -49,6 +56,10 @@ class EncodingDialog(GladeWindow, Renderer):
Renderer.__init__(self, project, pipeline)
+ ellipsize(self.muxercombobox)
+ ellipsize(self.audio_encoder_combo)
+ ellipsize(self.video_encoder_combo)
+
self.timestarted = 0
self._displaySettings()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]