From f801dfceba0913f19fa557c7b01583a41d6b3e60 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 10 Mar 2008 14:37:25 +0000 Subject: [PATCH] 0001925: fixed closing via title bar close button launched help svn: r10262 --- src/DataViews/GrampletView.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DataViews/GrampletView.py b/src/DataViews/GrampletView.py index 60398947f..b0d51012b 100644 --- a/src/DataViews/GrampletView.py +++ b/src/DataViews/GrampletView.py @@ -159,9 +159,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(" ", "_"))