From 412d9b4d8763fe0da3da7d883536233a94ea98cd Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 25 Apr 2009 22:29:22 +0000 Subject: [PATCH] add tooltip explaining why file transfer button is diabled. Fixes #3948 --- src/chat_control.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/chat_control.py b/src/chat_control.py index 392aea678..8edfdc5b5 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1286,6 +1286,13 @@ class ChatControl(ChatControlBase): self._send_file_button.set_sensitive(True) else: self._send_file_button.set_sensitive(False) + if not gajim.capscache.is_supported(self.contact, NS_FILE): + self._send_file_button.set_tooltip_text(_( + "This contact does not support file transfer.")) + else: + self._send_file_button.set_tooltip_text( + _("You need to know the real JID of the contact to send him or " + "her a file.")) # Convert to GC if gajim.capscache.is_supported(self.contact, NS_MUC):