Support setting None as the secondary text #384

master
Tomeu Vizoso 16 years ago
parent 77433af5ff
commit a4e9c9c78e

@ -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:

Loading…
Cancel
Save