[pitivi] encodingdialog: ellipize combobox correctly
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] encodingdialog: ellipize combobox correctly
- Date: Mon, 6 Jun 2011 05:12:52 +0000 (UTC)
commit 00087ef34784d6c311ec0cef45a53272f4683646
Author: Thibault Saunier <thibault saunier collabora com>
Date: Mon Jun 6 00:01:53 2011 -0400
encodingdialog: ellipize combobox correctly
After the GtkBuilder port, the ellipization of combobox became... a bit to
efficient (We only add '...') this sets the length of the text to 60 chars
which fixes the issue.
pitivi/ui/encodingdialog.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index e96bb98..8cd80d1 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -26,6 +26,7 @@ Encoding dialog
import os
import gtk
import gst
+import pango
from gettext import gettext as _
@@ -100,12 +101,11 @@ def factorylist(factories):
data.sort(key=lambda x: x[0])
return model(columns, data)
-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
+ cell_renderer.props.ellipsize = pango.ELLIPSIZE_MIDDLE
+ cell_renderer.props.width_chars = 60
class EncodingDialog(Renderer, Loggable):
""" Encoding dialog box """
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]