changeset d3cde2dede39 in /home/hg/repos/gajim
branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=d3cde2dede39 description: move formattings button tooltip to the code to make it more precise. Fixes #7389
diffstat:
data/gui/chat_control.ui | 1 - src/chat_control.py | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r 07c06b35d103 -r d3cde2dede39 data/gui/chat_control.ui --- a/data/gui/chat_control.ui Tue Jul 30 14:56:32 2013 +0200 +++ b/data/gui/chat_control.ui Mon Jul 29 10:54:48 2013 +0200 @@ -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> diff -r 07c06b35d103 -r d3cde2dede39 src/chat_control.py --- a/src/chat_control.py Tue Jul 30 14:56:32 2013 +0200 +++ b/src/chat_control.py Mon Jul 29 10:54:48 2013 +0200 @@ -1755,8 +1755,16 @@ # 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) \