change tooltip text for audio and video buttons.

This commit is contained in:
Denis Fomin 2012-07-19 19:43:00 +04:00
parent 46128fd1be
commit 3152dc6cd6
1 changed files with 12 additions and 2 deletions

View File

@ -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)