From 3152dc6cd659e5142311f7132723d13026afac43 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Thu, 19 Jul 2012 19:43:00 +0400 Subject: [PATCH] change tooltip text for audio and video buttons. --- src/chat_control.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index b7304dfac..b3de32d62 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1655,10 +1655,20 @@ class ChatControl(ChatControlBase): if not gajim.HAVE_FARSTREAM: tooltip_text = self._audio_button.get_tooltip_text() self._audio_button.set_tooltip_text( - '%s\n%s' % (tooltip_text, _('Requires python-farstream.'))) + '%s\n%s' % (tooltip_text, + _('Feature not available, see Help->Features'))) tooltip_text = self._video_button.get_tooltip_text() self._video_button.set_tooltip_text( - '%s\n%s' % (tooltip_text, _('Requires python-farstream.'))) + '%s\n%s' % (tooltip_text, + _('Feature not available, see Help->Features'))) + elif not self.audio_available : + self._audio_button.set_tooltip_text( + '%s\n%s' % (tooltip_text, + _('Feature not supported by remote client'))) + tooltip_text = self._video_button.get_tooltip_text() + self._video_button.set_tooltip_text( + '%s\n%s' % (tooltip_text, + _('Feature not supported by remote client'))) gajim.ged.register_event_handler('pep-received', ged.GUI1, self._nec_pep_received)