diff --git a/gramps/gui/configure.py b/gramps/gui/configure.py index abe1e6cd2..bd7050b6f 100644 --- a/gramps/gui/configure.py +++ b/gramps/gui/configure.py @@ -1137,7 +1137,7 @@ class GrampsPreferences(ConfigureDialog): self.dbstate.db.name_formats = _nd.get_name_format(only_custom=True, only_active=False) - def cb_grampletbar_close(self, obj, state): + def cb_grampletbar_close(self, obj): """ Gramplet bar close button preference callback """ diff --git a/gramps/gui/widgets/grampletbar.py b/gramps/gui/widgets/grampletbar.py index 8dac3158c..5b3431802 100644 --- a/gramps/gui/widgets/grampletbar.py +++ b/gramps/gui/widgets/grampletbar.py @@ -403,7 +403,8 @@ class GrampletBar(Gtk.Notebook): """ for gramplet in self.get_children(): tablabel = self.get_tab_label(gramplet) - tablabel.use_close(config.get('interface.grampletbar-close')) + if not isinstance(tablabel, Gtk.Label): + tablabel.use_close(config.get('interface.grampletbar-close')) def __delete_clicked(self, button, gramplet): """