0001925: fixed closing via title bar close button launched help

svn: r10261
This commit is contained in:
Doug Blank 2008-03-10 14:36:24 +00:00
parent abc799a06b
commit da3a06c176

View File

@ -174,9 +174,9 @@ class GrampletWindow(ManagedWindow.ManagedWindow):
self.window.show()
def handle_response(self, object, response):
if response == gtk.RESPONSE_CLOSE:
if response in [gtk.RESPONSE_CLOSE, gtk.STOCK_CLOSE]:
self.close()
else:
elif response == gtk.RESPONSE_HELP:
# translated name:
GrampsDisplay.help('gramplet', WIKI_HELP_PAGE,
self.gramplet.tname.replace(" ", "_"))