Comment 7 for bug 388445

Revision history for this message
A. Walton (awalton) wrote :

We have a function for that in Eel, but someone posted a bug about it not being 100% reliable on UTF-8 (I'm not exactly sure why this is, but I'm sure someone could come up with a test-case if they were trying and we could fixup that function). GtkLabel doesn't do us better either, since the way that we're specifying the string doesn't lend itself well to being truncated well by Pango.

An immediate answer would to be to go ahead and use eel_str_middle_truncate(), since there is no replacement for it.