fix order and focus in gtkexcepthook
This commit is contained in:
parent
9336be0448
commit
8d2e399676
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue