From db09dcc6bf4185d6a5165b26f021bd3d9e4ae6e2 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 3 Aug 2010 00:57:50 +0000 Subject: [PATCH] Added a new method to work around gramps' use of show_all: hidden_widgets svn: r15681 --- src/gen/plug/_gramplet.py | 7 +++++++ src/gui/widgets/grampletpane.py | 2 ++ 2 files changed, 9 insertions(+) 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): """