Support setting None as the secondary text #384

This commit is contained in:
Tomeu Vizoso 2009-02-24 10:56:09 +01:00
parent 77433af5ff
commit a4e9c9c78e

View File

@ -355,6 +355,7 @@ class Palette(gtk.Window):
setter=set_primary_text)
def set_secondary_text(self, label):
if label is not None:
label = label.split('\n', 1)[0]
self._secondary_text = label