! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
bad label text wrapping
Status:
RESOLVED: WORKSFORME
Severity:
trivial

Comments

Description Robert Hollencamp 2008-06-25 18:05:17 CEST
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
Comment 1 Robert Hollencamp 2008-06-25 18:06:06 CEST
Created attachment 1710 
screenshot

nautilus is on the left, thunar on the right; observe the difference in the way they display the file names
Comment 2 Nick Schermer editbugs 2012-11-07 10:30:54 CET
*** Bug 8141 has been marked as a duplicate of this bug. ***
Comment 3 Ashley Whetter 2013-06-17 11:40:57 CEST
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.
Comment 4 Harald Judt editbugs 2015-04-17 16:53:53 CEST
Reproducible in git master (1.6.6+).
Comment 5 Andre Miranda editbugs 2020-05-26 00:31:41 CEST
Not reproducible anymore with Thunar 1.8.14, probably fixed during gtk3 port.

Bug #4171

Reported by:
Robert Hollencamp
Reported on: 2008-06-25
Last modified on: 2020-05-26
Duplicates (1):
  • 8141 Dots are not considered as separators for filename wrapping

People

Assignee:
Jannis Pohlmann
CC List:
5 users

Version

Version:
unspecified

Attachments

screenshot (113.56 KB, image/jpeg)
2008-06-25 18:06 CEST , Robert Hollencamp
no flags

Additional information