ChatControl: Switch encrypted symbol to symbolic

This commit is contained in:
Daniel Brötzmann 2019-04-12 18:02:15 +02:00
parent 53880edd96
commit ef1d7771fb
1 changed files with 4 additions and 3 deletions

View File

@ -825,13 +825,14 @@ class ChatControl(ChatControlBase):
if authenticated:
authenticated_string = _('and authenticated')
self.lock_image.set_from_icon_name(
'security-high', Gtk.IconSize.MENU)
'security-high-symbolic', Gtk.IconSize.MENU)
else:
authenticated_string = _('and NOT authenticated')
self.lock_image.set_from_icon_name(
'security-low', Gtk.IconSize.MENU)
'security-low-symbolic', Gtk.IconSize.MENU)
tooltip = _('%(type)s encryption is active %(authenticated)s.') % {'type': enc_type, 'authenticated': authenticated_string}
tooltip = _('%(type)s encryption is active %(authenticated)s') % \
{'type': enc_type, 'authenticated': authenticated_string}
self.authentication_button.set_tooltip_text(tooltip)
self.widget_set_visible(self.authentication_button, not visible)