Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/graphics/palette.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-02-24 09:56:09 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-02-24 09:56:09 (GMT)
commita4e9c9c78eb063c5474f9365bce3aaf59381b91d (patch)
tree23ef919c2041d381f36b9714bc7034daa06b7df8 /src/sugar/graphics/palette.py
parent77433af5ffd02305f2c9841a13e4ad7b16e79f65 (diff)
Support setting None as the secondary text #384
Diffstat (limited to 'src/sugar/graphics/palette.py')
-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 43c5677..ce551bb 100644
--- a/src/sugar/graphics/palette.py
+++ b/src/sugar/graphics/palette.py
@@ -355,7 +355,8 @@ class Palette(gtk.Window):
setter=set_primary_text)
def set_secondary_text(self, label):
- label = label.split('\n', 1)[0]
+ if label is not None:
+ label = label.split('\n', 1)[0]
self._secondary_text = label
if label is None: