change tooltip text for audio and video buttons.
This commit is contained in:
parent
46128fd1be
commit
3152dc6cd6
|
@ -1655,10 +1655,20 @@ class ChatControl(ChatControlBase):
|
||||||
if not gajim.HAVE_FARSTREAM:
|
if not gajim.HAVE_FARSTREAM:
|
||||||
tooltip_text = self._audio_button.get_tooltip_text()
|
tooltip_text = self._audio_button.get_tooltip_text()
|
||||||
self._audio_button.set_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()
|
tooltip_text = self._video_button.get_tooltip_text()
|
||||||
self._video_button.set_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,
|
gajim.ged.register_event_handler('pep-received', ged.GUI1,
|
||||||
self._nec_pep_received)
|
self._nec_pep_received)
|
||||||
|
|
Loading…
Reference in New Issue