Support setting None as the secondary text #384
This commit is contained in:
parent
77433af5ff
commit
a4e9c9c78e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user