From 9bcbb764efb202669b21f19518f315dfcaa05ec1 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 29 Jul 2013 21:11:40 +0200 Subject: [PATCH] use correct function to set tooltip --- src/chat_control.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index 907813b6d..67593ac08 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1794,16 +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(_( + self._formattings_button.set_tooltip_text(_( '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')) + self._formattings_button.set_tooltip_text(_('Formattings are ' + 'not available when GPG is active')) else: - self._formattings_button.set_tooltip(_('This contact does not ' - 'support HTML')) + self._formattings_button.set_tooltip_text(_('This contact does ' + 'not support HTML')) # Add to roster if not isinstance(self.contact, GC_Contact) \