Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-02-24 09:37:30 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-02-24 09:37:30 (GMT)
commit77433af5ffd02305f2c9841a13e4ad7b16e79f65 (patch)
tree120ae75e318a14396880a185ce3f755c24573b03 /src
parente2696086e66974f4be64f887e741f2aa34749943 (diff)
Only display one line in the secondary text of a clipping palette #384
Diffstat (limited to 'src')
-rw-r--r--src/sugar/graphics/palette.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sugar/graphics/palette.py b/src/sugar/graphics/palette.py
index afc6e70..43c5677 100644
--- a/src/sugar/graphics/palette.py
+++ b/src/sugar/graphics/palette.py
@@ -188,7 +188,7 @@ class Palette(gtk.Window):
if text_maxlen > 0:
self._secondary_label.set_max_width_chars(text_maxlen)
- self._secondary_label.set_ellipsize(pango.ELLIPSIZE_MIDDLE)
+ self._secondary_label.set_ellipsize(pango.ELLIPSIZE_END)
labels_box.pack_start(self._secondary_label, expand=True)
@@ -355,6 +355,7 @@ class Palette(gtk.Window):
setter=set_primary_text)
def set_secondary_text(self, label):
+ label = label.split('\n', 1)[0]
self._secondary_text = label
if label is None: