diff --git a/src/gen/plug/_gramplet.py b/src/gen/plug/_gramplet.py index fdf7113f5..ef2d1c365 100644 --- a/src/gen/plug/_gramplet.py +++ b/src/gen/plug/_gramplet.py @@ -403,3 +403,10 @@ class Gramplet(object): signal_obj.disconnect(id) else: raise AttributeError("unknown signal: '%s'" % signal) + + def hidden_widgets(self): + """ + A list of widgets to keep hidden. Needed because Gramps uses + show_all() in some places. + """ + return [] diff --git a/src/gui/widgets/grampletpane.py b/src/gui/widgets/grampletpane.py index a5a818588..60faffdb4 100644 --- a/src/gui/widgets/grampletpane.py +++ b/src/gui/widgets/grampletpane.py @@ -226,6 +226,8 @@ class GrampletWindow(ManagedWindow.ManagedWindow): self.gramplet.gvproperties.hide() if self.gramplet.titlelabel_entry: self.gramplet.titlelabel_entry.hide() + for widget in self.gramplet.pui.hidden_widgets(): + widget.hide() def handle_response(self, object, response): """