0001925: fixed closing via title bar close button launched help

svn: r10262
This commit is contained in:
Doug Blank 2008-03-10 14:37:25 +00:00
parent 7a7bd257d4
commit f801dfceba

View File

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