Page MenuHome

Splash screen: too long file names fix (bug #20742)
Closed, ArchivedPublicPATCH

Description

Too long filenames were truncated "too late", thus overlapping the shortcut text.
Moreover, simply truncating a filename may not give the most useful information.

So this patch truncates filenames whose displayed width is too high, by removing characters in the middle of the filename (keeping the first chars, and the last 10 ones, with "..." replacing the removed ones.
This is taken from OSX finder behavior.

Event Timeline

Hi, thanks for the patch - I didn't end up using it, it's better to do it on the UI level, so it's the same in other situations.

I reused the left clipping function that exists.. I know it's not as nice as yours, but saves adding extra code and keeps things simpler - I think it'll still be quite sufficient.

cheers!

Hi Matt,
No pb!
You'll still have the code if someone complains again on this topic ;)

Patch closed.

Cheers

Damien Plisson (damien78) changed the task status from Unknown Status to Unknown Status.Jan 21 2010, 9:29 AM