From 8d2e399676429174c0dd79503999295e5a0d41c2 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 12 Sep 2005 21:56:16 +0000 Subject: [PATCH] fix order and focus in gtkexcepthook --- src/gtkexcepthook.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gtkexcepthook.py b/src/gtkexcepthook.py index 70405fb82..89c8cef23 100644 --- a/src/gtkexcepthook.py +++ b/src/gtkexcepthook.py @@ -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()