changeset f3ba2501017a in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=f3ba2501017a description: change tooltip text for audio and video buttons.
diffstat:
src/chat_control.py | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 22b70b9f148b -r f3ba2501017a src/chat_control.py --- a/src/chat_control.py Tue Jul 17 22:42:22 2012 +0400 +++ b/src/chat_control.py Thu Jul 19 19:43:00 2012 +0400 @@ -1655,10 +1655,20 @@ 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)