set title of fingerprint dialog. Fixes #7239

This commit is contained in:
Yann Leboulanger 2013-09-13 07:30:09 +02:00
parent 7c5485ab2e
commit c5b20c8bce
1 changed files with 2 additions and 2 deletions

View File

@ -5465,6 +5465,7 @@ class CheckFingerprintDialog(YesNoDialog):
YesNoDialog.__init__(self, pritext, sectext=sectext,
checktext=checktext, on_response_yes=on_response_yes,
on_response_no=on_response_no)
self.set_title(_('SSL Certificate Verification for %s') % account)
b = Gtk.Button(_('View cert...'))
b.connect('clicked', self.on_cert_clicked)
b.show_all()
@ -5472,8 +5473,7 @@ class CheckFingerprintDialog(YesNoDialog):
area.pack_start(b, True, True, 0)
def on_cert_clicked(self, button):
d = CertificatDialog(self, self.account, self.cert)
d.set_title(_('Certificate'))
CertificatDialog(self, self.account, self.cert)
class SSLErrorDialog(ConfirmationDialogDoubleCheck):
def __init__(self, account, certificate, pritext, sectext, checktext1,