From b8c96bcc172c357471b76c4b4dbfde65d0c808c8 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Sun, 21 Nov 2010 21:06:58 +0300 Subject: [PATCH] change tooltip text for audio and video buttons if python-farsight is not installed Fix #6042 --- src/chat_control.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/chat_control.py b/src/chat_control.py index 0d609f220..fb890ca2f 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1587,6 +1587,16 @@ class ChatControl(ChatControlBase): self.restore_conversation() self.msg_textview.grab_focus() + # change tooltip text for audio and video buttons if python-farsight is + # not installed + if not gajim.HAVE_FARSIGHT: + tooltip_text = self._audio_button.get_tooltip_text() + self._audio_button.set_tooltip_text( + '%s\n%s' % (tooltip_text, _('Requires python-farsight.'))) + tooltip_text = self._video_button.get_tooltip_text() + self._video_button.set_tooltip_text( + '%s\n%s' % (tooltip_text, _('Requires python-farsight.'))) + # PluginSystem: adding GUI extension point for this ChatControl # instance object gajim.plugin_manager.gui_extension_point('chat_control', self)