Fix stale tab titles
This commit is contained in:
parent
566ca62bb6
commit
6a430ca05b
|
@ -220,8 +220,10 @@ class Notebook(Container, Gtk.Notebook):
|
||||||
label = self.get_tab_label(widget)
|
label = self.get_tab_label(widget)
|
||||||
if not label:
|
if not label:
|
||||||
dbg('unable to find label for widget: %s' % widget)
|
dbg('unable to find label for widget: %s' % widget)
|
||||||
|
elif label.get_custom_label():
|
||||||
|
metadata['label'] = label.get_custom_label()
|
||||||
else:
|
else:
|
||||||
metadata['label'] = label.get_label()
|
dbg('don\'t grab the label as it was not customised')
|
||||||
return metadata
|
return metadata
|
||||||
|
|
||||||
def get_children(self):
|
def get_children(self):
|
||||||
|
|
Loading…
Reference in New Issue