change icon of certificate Dialog. see #7445

This commit is contained in:
Yann Leboulanger 2014-03-29 18:27:48 +01:00
parent cb39f5957a
commit 489bae4100
2 changed files with 6 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -5468,6 +5468,12 @@ SHA256 Fingerprint: %(sha256)s
'io': cert.get_notBefore(), 'eo': cert.get_notAfter(),
'sha1': cert.digest('sha1'),
'sha256': cert.digest('sha256')})
pix = gtkgui_helpers.get_icon_pixmap('application-certificate', size=32,
quiet=True)
if pix:
img = Gtk.Image.new_from_pixbuf(pix)
img.show_all()
self.set_image(img)
self.set_transient_for(parent)
self.set_title(_('Certificate for account %s') % account)