Added a new method to work around gramps' use of show_all: hidden_widgets
svn: r15681
This commit is contained in:
parent
27ab4c5484
commit
db09dcc6bf
@ -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 []
|
||||
|
@ -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):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user