From dd80e4b80e86faf62d7c14c6faf8609337704463 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Mon, 26 Aug 2019 12:01:32 +0200 Subject: [PATCH] Error when checking option to add Quit to Taskbar Fixes #11290 --- gramps/gui/configure.py | 2 +- gramps/gui/widgets/grampletbar.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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): """