Added a new method to work around gramps' use of show_all: hidden_widgets

svn: r15681
This commit is contained in:
Doug Blank 2010-08-03 00:57:50 +00:00
parent 27ab4c5484
commit db09dcc6bf
2 changed files with 9 additions and 0 deletions

View File

@ -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 []

View File

@ -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):
"""