change tooltip text for audio and video buttons if python-farsight is not installed
Fix #6042
This commit is contained in:
parent
9c4b1f78f9
commit
b8c96bcc17
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue