From e3be3519eddd4ab6685c3312cdc1aa4ac3f4a728 Mon Sep 17 00:00:00 2001 From: Mackenzie Morgan Date: Sat, 5 Jul 2008 00:42:12 -0400 Subject: [PATCH 1/2] Get rid of button label ambiguity --- terminatorlib/terminator.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 3fe30d1f..e1dbc0a3 100755 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -195,11 +195,14 @@ class Terminator: return False # show dialog - dialog = gtk.Dialog (_("Close?"), window, gtk.DIALOG_MODAL, - (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT, gtk.STOCK_CLOSE, gtk.RESPONSE_ACCEPT)) + dialog = gtk.Dialog (_("Close?"), window, gtk.DIALOG_MODAL) dialog.set_has_separator (False) dialog.set_resizable (False) + cancel = dialog.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT) + close_all = dialog.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_ACCEPT) + label = close_all.get_children()[0].get_children()[0].get_children()[1].set_label(_("Close _All Terminals")) + primairy = gtk.Label (_('Close all terminals?')) primairy.set_use_markup (True) primairy.set_alignment (0, 0.5) From a49f4dc43a6b5300495f9a1fce2f93a7be3795ef Mon Sep 17 00:00:00 2001 From: Mackenzie Morgan Date: Sat, 5 Jul 2008 12:55:14 -0400 Subject: [PATCH 2/2] Move accelerator from A to T on close dialog --- terminatorlib/terminator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index e1dbc0a3..04b80a39 100755 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -201,7 +201,7 @@ class Terminator: cancel = dialog.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT) close_all = dialog.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_ACCEPT) - label = close_all.get_children()[0].get_children()[0].get_children()[1].set_label(_("Close _All Terminals")) + label = close_all.get_children()[0].get_children()[0].get_children()[1].set_label(_("Close All _Terminals")) primairy = gtk.Label (_('Close all terminals?')) primairy.set_use_markup (True)