Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norstbox
gajim
Commits
a7bc6dc5
Commit
a7bc6dc5
authored
Mar 28, 2019
by
Daniel Brötzmann
Browse files
Add monospace formatted fingerprint to encryption tooltip
parent
ae29c937
Changes
1
Hide whitespace changes
Inline
Side-by-side
gajim/conversation_textview.py
View file @
a7bc6dc5
...
...
@@ -1158,10 +1158,10 @@ class ConversationTextview(GObject.GObject):
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 @@ class ConversationTextview(GObject.GObject):
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment