changeset 4504e98bd824 in /home/hg/repos/gajim
author: Yann Leboulanger <[email protected]>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=4504e98bd824
description: prevent too long tooltips. Fixes #8465
diffstat:
src/htmltextview.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 81a6a0e863df -r 4504e98bd824 src/htmltextview.py
--- a/src/htmltextview.py Mon Nov 28 21:09:40 2016 +0100
+++ b/src/htmltextview.py Mon Nov 28 21:52:40 2016 +0100
@@ -913,6 +913,8 @@
return
text = getattr(tag, 'title', False)
if text:
+ if len(text) > 50:
+ text = text[:47] + '...'
position = w.get_origin()[1:]
self.tooltip.show_tooltip(text, 8, position[1] + y)
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits