From 471329a0e070b8eaaa175043aa01314ca074ae91 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 28 Nov 2016 21:52:40 +0100 Subject: [PATCH] prevent too long tooltips. Fixes #8465 --- src/htmltextview.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/htmltextview.py b/src/htmltextview.py index d18c34673..31e8f67a0 100644 --- a/src/htmltextview.py +++ b/src/htmltextview.py @@ -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)