fix order and focus in gtkexcepthook

This commit is contained in:
Nikos Kouremenos 2005-09-12 21:56:16 +00:00
parent 9336be0448
commit 8d2e399676
1 changed files with 4 additions and 2 deletions

View File

@ -51,9 +51,11 @@ def _info(type, value, tb):
#FIXME: add icon to this button
RESPONSE_REPORT_BUG = 42
dialog.add_buttons(_('_Report Bug'), RESPONSE_REPORT_BUG,
gtk.STOCK_CLOSE, gtk.BUTTONS_CLOSE)
dialog.add_buttons(gtk.STOCK_CLOSE, gtk.BUTTONS_CLOSE,
_('_Report Bug'), RESPONSE_REPORT_BUG)
dialog.set_default_response(RESPONSE_REPORT_BUG)
report_button = dialog.action_area.get_children()[0] # right to left
report_button.grab_focus()
# Details
textview = gtk.TextView()