0001925: fixed closing via title bar close button launched help
svn: r10261
This commit is contained in:
parent
abc799a06b
commit
da3a06c176
@ -174,9 +174,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(" ", "_"))
|
||||||
|
Loading…
Reference in New Issue
Block a user