User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008051202 Firefox/3.0 Build Identifier: if the label for an icon doesn't fit on one line, the text wrapping is done poorly. Words are currently broken up at spaces, but could also be broken up at underscores and periods. Also, the label is left aligned when it goes to multiple lines, which looks weird; center aligned text looks much nicer Reproducible: Always Steps to Reproduce: 1. install thunar 2. create a document with a really long filename (including long words, underscoes, file extension, etc) 3. look at the document in thunar Actual Results: the label looks bad Expected Results: the label looks good
Created attachment 1710 screenshot nautilus is on the left, thunar on the right; observe the difference in the way they display the file names
*** Bug 8141 has been marked as a duplicate of this bug. ***
The text alignment has been set to centred since this bug was created but I think the word wrapping is a Pango "issue". Thunar currently gets Pango to "wrap lines at word boundaries, but fall back to character boundaries if there is not enough space for a full word" using pango.WRAP_WORD_CHAR. But Pango doesn't count an underscore or full stop as a word boundary. So for "inventory_spec.sql" for example, Pango thinks it's one long word and falls back to wrapping by character.
Reproducible in git master (1.6.6+).
Not reproducible anymore with Thunar 1.8.14, probably fixed during gtk3 port.