Skip to content
Snippets Groups Projects
Commit 949f02b9 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

move formattings button tooltip to the code to make it more precise. Fixes #7389

parent 1cdeb189
No related branches found
No related tags found
No related merge requests found
......@@ -301,7 +301,6 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="tooltip_text" translatable="yes">Show a list of formattings</property>
<property name="relief">none</property>
<property name="focus_on_click">False</property>
<child>
......
......@@ -1755,8 +1755,16 @@ class ChatControl(ChatControlBase):
# Formatting
if self.contact.supports(NS_XHTML_IM) and not self.gpg_is_active:
self._formattings_button.set_sensitive(True)
self._formattings_button.set_tooltip(_(
'Show a list of formattings'))
else:
self._formattings_button.set_sensitive(False)
if self.contact.supports(NS_XHTML_IM):
self._formattings_button.set_tooltip(_('Formattings are not '
'available when GPG is active'))
else:
self._formattings_button.set_tooltip(_('This contact does not '
'support HTML'))
# Add to roster
if not isinstance(self.contact, GC_Contact) \
......
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