changeset f5c74802fc40 in /home/hg/repos/gajim
branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=f5c74802fc40 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 a515a8a74125 -r f5c74802fc40 data/gui/chat_control.ui --- a/data/gui/chat_control.ui Sun Jul 28 12:58:15 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 a515a8a74125 -r f5c74802fc40 src/chat_control.py --- a/src/chat_control.py Sun Jul 28 12:58:15 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) \