Skip to content
Snippets Groups Projects
Commit a7bc6dc5 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

Add monospace formatted fingerprint to encryption tooltip

parent ae29c937
No related branches found
No related tags found
No related merge requests found
......@@ -1158,10 +1158,10 @@ def print_encryption_status(self, iter_, additional_data):
color = 'encrypted-color'
else:
icon, trust_tooltip, color = TRUST_SYMBOL_DATA[trust]
tooltip = tooltip + '\n' + trust_tooltip
tooltip = '%s\n%s' % (tooltip, trust_tooltip)
if fingerprint is not None:
fingerprint = format_fingerprint(fingerprint)
tooltip = tooltip + '\n' + fingerprint
tooltip = '%s\n<tt>%s</tt>' % (tooltip, fingerprint)
temp_mark = self._buffer.create_mark(None, iter_, True)
self._buffer.insert(iter_, ' ')
......@@ -1175,7 +1175,7 @@ def print_encryption_status(self, iter_, additional_data):
image = Gtk.Image.new_from_icon_name(icon, Gtk.IconSize.MENU)
image.show()
image.set_tooltip_text(tooltip)
image.set_tooltip_markup(tooltip)
image.get_style_context().add_class(color)
self.tv.add_child_at_anchor(image, anchor)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment