use correct function to set tooltip
This commit is contained in:
parent
452fbc6a54
commit
9bcbb764ef
1 changed files with 5 additions and 5 deletions
|
@ -1794,16 +1794,16 @@ class ChatControl(ChatControlBase):
|
||||||
# Formatting
|
# Formatting
|
||||||
if self.contact.supports(NS_XHTML_IM) and not self.gpg_is_active:
|
if self.contact.supports(NS_XHTML_IM) and not self.gpg_is_active:
|
||||||
self._formattings_button.set_sensitive(True)
|
self._formattings_button.set_sensitive(True)
|
||||||
self._formattings_button.set_tooltip(_(
|
self._formattings_button.set_tooltip_text(_(
|
||||||
'Show a list of formattings'))
|
'Show a list of formattings'))
|
||||||
else:
|
else:
|
||||||
self._formattings_button.set_sensitive(False)
|
self._formattings_button.set_sensitive(False)
|
||||||
if self.contact.supports(NS_XHTML_IM):
|
if self.contact.supports(NS_XHTML_IM):
|
||||||
self._formattings_button.set_tooltip(_('Formattings are not '
|
self._formattings_button.set_tooltip_text(_('Formattings are '
|
||||||
'available when GPG is active'))
|
'not available when GPG is active'))
|
||||||
else:
|
else:
|
||||||
self._formattings_button.set_tooltip(_('This contact does not '
|
self._formattings_button.set_tooltip_text(_('This contact does '
|
||||||
'support HTML'))
|
'not support HTML'))
|
||||||
|
|
||||||
# Add to roster
|
# Add to roster
|
||||||
if not isinstance(self.contact, GC_Contact) \
|
if not isinstance(self.contact, GC_Contact) \
|
||||||
|
|
Loading…
Add table
Reference in a new issue