make gtkexcepthook dialog non modal. fixes #4148
This commit is contained in:
parent
e22c6e9697
commit
80f6d7909c
|
@ -47,6 +47,7 @@ def _info(type, value, tb):
|
||||||
_('It probably is not fatal, but should be reported '
|
_('It probably is not fatal, but should be reported '
|
||||||
'to the developers nonetheless.'))
|
'to the developers nonetheless.'))
|
||||||
|
|
||||||
|
dialog.set_modal(False)
|
||||||
#FIXME: add icon to this button
|
#FIXME: add icon to this button
|
||||||
RESPONSE_REPORT_BUG = 42
|
RESPONSE_REPORT_BUG = 42
|
||||||
dialog.add_buttons(gtk.STOCK_CLOSE, gtk.BUTTONS_CLOSE,
|
dialog.add_buttons(gtk.STOCK_CLOSE, gtk.BUTTONS_CLOSE,
|
||||||
|
@ -81,18 +82,15 @@ def _info(type, value, tb):
|
||||||
# on expand the details the dialog remains centered on screen
|
# on expand the details the dialog remains centered on screen
|
||||||
dialog.set_position(gtk.WIN_POS_CENTER_ALWAYS)
|
dialog.set_position(gtk.WIN_POS_CENTER_ALWAYS)
|
||||||
|
|
||||||
dialog.show_all()
|
|
||||||
|
|
||||||
close_clicked = False
|
close_clicked = False
|
||||||
while not close_clicked:
|
def on_dialog_response(dialog, response):
|
||||||
resp = dialog.run()
|
if response == RESPONSE_REPORT_BUG:
|
||||||
if resp == RESPONSE_REPORT_BUG:
|
|
||||||
url = 'http://trac.gajim.org/wiki/HowToCreateATicket'
|
url = 'http://trac.gajim.org/wiki/HowToCreateATicket'
|
||||||
helpers.launch_browser_mailer('url', url)
|
helpers.launch_browser_mailer('url', url)
|
||||||
else:
|
else:
|
||||||
close_clicked = True
|
dialog.destroy()
|
||||||
|
dialog.connect('response', on_dialog_response)
|
||||||
dialog.destroy()
|
dialog.show_all()
|
||||||
|
|
||||||
_exception_in_progress.release()
|
_exception_in_progress.release()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue