[pitivi] ui/dynamic.py: ellipsize text in choicewidgets
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ui/dynamic.py: ellipsize text in choicewidgets
- Date: Tue, 17 Aug 2010 07:07:47 +0000 (UTC)
commit 7579c4c18cb5fc33b2349a903b5431188d4ba3e9
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Tue Apr 13 11:31:07 2010 -0700
ui/dynamic.py: ellipsize text in choicewidgets
pitivi/ui/dynamic.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/dynamic.py b/pitivi/ui/dynamic.py
index bccaa78..b02e3d1 100644
--- a/pitivi/ui/dynamic.py
+++ b/pitivi/ui/dynamic.py
@@ -30,6 +30,7 @@ import sys
import gst
from gettext import gettext as _
from pitivi.ui.common import unpack_color, pack_color_32, pack_color_64
+import pango
class DynamicWidget(object):
@@ -294,6 +295,8 @@ class ChoiceWidget(gtk.HBox):
self.contents.set_sensitive(False)
self.pack_start(self.contents)
self.contents.show()
+ cell = self.contents.get_cells()[0]
+ cell.props.ellipsize = pango.ELLIPSIZE_END
def connectValueChanged(self, callback, *args):
return self.contents.connect("changed", callback, *args)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]