prevent too long tooltips. Fixes #8465
This commit is contained in:
		
							parent
							
								
									ab0a98ac3b
								
							
						
					
					
						commit
						471329a0e0
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue