From fb3864bdedf5e97817bf3a21330189367016403f Mon Sep 17 00:00:00 2001 From: Daniel T Chen Date: Sat, 5 Jul 2008 00:39:55 -0400 Subject: [PATCH] Clarify button labels on close dialog --- terminatorlib/terminator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 3fe30d1f..6e1834f5 100755 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -195,8 +195,10 @@ 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) + 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")) dialog.set_has_separator (False) dialog.set_resizable (False)