Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
a7bc6dc5
by Daniel Brötzmann at 2019-03-28T19:54:04Z
1 changed file:
Changes:
| ... | ... | @@ -1158,10 +1158,10 @@ class ConversationTextview(GObject.GObject): |
| 1158 | 1158 |
color = 'encrypted-color'
|
| 1159 | 1159 |
else:
|
| 1160 | 1160 |
icon, trust_tooltip, color = TRUST_SYMBOL_DATA[trust]
|
| 1161 |
- tooltip = tooltip + '\n' + trust_tooltip
|
|
| 1161 |
+ tooltip = '%s\n%s' % (tooltip, trust_tooltip)
|
|
| 1162 | 1162 |
if fingerprint is not None:
|
| 1163 | 1163 |
fingerprint = format_fingerprint(fingerprint)
|
| 1164 |
- tooltip = tooltip + '\n' + fingerprint
|
|
| 1164 |
+ tooltip = '%s\n<tt>%s</tt>' % (tooltip, fingerprint)
|
|
| 1165 | 1165 |
|
| 1166 | 1166 |
temp_mark = self._buffer.create_mark(None, iter_, True)
|
| 1167 | 1167 |
self._buffer.insert(iter_, ' ')
|
| ... | ... | @@ -1175,7 +1175,7 @@ class ConversationTextview(GObject.GObject): |
| 1175 | 1175 |
|
| 1176 | 1176 |
image = Gtk.Image.new_from_icon_name(icon, Gtk.IconSize.MENU)
|
| 1177 | 1177 |
image.show()
|
| 1178 |
- image.set_tooltip_text(tooltip)
|
|
| 1178 |
+ image.set_tooltip_markup(tooltip)
|
|
| 1179 | 1179 |
image.get_style_context().add_class(color)
|
| 1180 | 1180 |
self.tv.add_child_at_anchor(image, anchor)
|
| 1181 | 1181 |
|