[commit-gajim] r11241 - trunk/src

asterix at gajim.org asterix at gajim.org
Sun Apr 26 00:29:22 CEST 2009


Author: asterix
Date: 2009-04-26 00:29:22 +0200 (Sun, 26 Apr 2009)
New Revision: 11241

Modified:
   trunk/src/chat_control.py
Log:
add tooltip explaining why file transfer button is diabled. Fixes #3948


Modified: trunk/src/chat_control.py
===================================================================
--- trunk/src/chat_control.py	2009-04-25 22:10:03 UTC (rev 11240)
+++ trunk/src/chat_control.py	2009-04-25 22:29:22 UTC (rev 11241)
@@ -1286,6 +1286,13 @@
 			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):



More information about the Commits mailing list