Skip to content

grid-cell: Set tooltip values using text, not markup

Athul Iddya requested to merge aiddya/nautilus:tooltip-text into master

Tooltips are not showing up for long file names that have Pango markup characters. This is happening because the cell widget label is set using set_text, but is retrieved in the query-tooltip signal handler using get_label. While get_label can return Pango markup, it is not guaranteed to return text with markup characters escaped. Avoid this problem by fetching the file name from label and setting tooltip using text.

Before After
Screenshot_from_2023-01-13_07-45-32 Screenshot_from_2023-01-13_07-48-34

Merge request reports