move formattings button tooltip to the code to make it more precise. Fixes #7389
This commit is contained in:
parent
1cdeb1897a
commit
949f02b9da
2 changed files with 8 additions and 1 deletions
|
@ -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) \
|
||||
|
|
Loading…
Add table
Reference in a new issue