move formattings button tooltip to the code to make it more precise. Fixes #7389
This commit is contained in:
parent
de2383407c
commit
452fbc6a54
|
@ -360,7 +360,6 @@
|
|||
<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="has_tooltip">True</property>
|
||||
<property name="tooltip_text" translatable="yes">Show a list of formattings</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
<property name="relief">none</property>
|
||||
<property name="focus_on_click">False</property>
|
||||
|
|
|
@ -1794,8 +1794,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) \
|
||||
|
|
Loading…
Reference in New Issue