From a4e9c9c78eb063c5474f9365bce3aaf59381b91d Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 24 Feb 2009 09:56:09 +0000 Subject: Support setting None as the secondary text #384 --- (limited to 'src/sugar') 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: -- cgit v0.9.1