prevent too long tooltips. Fixes #8465

This commit is contained in:
Yann Leboulanger 2016-11-28 21:52:40 +01:00
parent ab0a98ac3b
commit 471329a0e0
1 changed files with 2 additions and 0 deletions

View File

@ -913,6 +913,8 @@ class HtmlTextView(Gtk.TextView):
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)