Hello, devs,

I'm having a problem with a clutter Label and Pango ellipse.

I have a clutter Label that is set to be a certain size, and I'm trying to
fill it with a lot of text. I intend to fill it with so much text that I
would like the end of the message to end with an ellipse as soon as it
reaches the limits of the label's size. My problem is that the combination
of label size restrictions, multiple lines of text within that label, and an
ellipse doesn't work as I would hope/expect. I can set the size of the label
to limit the width and the lines will properly wrap at the given width.
However, when I add the set_ellipsize() into the mix, the ellipsing is
applied immediately to the first line of text (even though the label has
plenty of room to allow more text on subsequent lines in the vertical
direction), and the rest is hidden. I was hoping to see multiple lines of
text, and when the size of the label couldn't fit any more lines, the rest
of my message would be ellipsized.

The line wrap is set to True and the ellipse mode is pango.ELLIPSIZE_END.
I'm doing all this in python with the python-clutter package that is the
Universe repository of Ubuntu Hardy Heron. Clutter version is 0.6.0
according to clutter.__version__. I don't know if I'm doing something
incorrectly, or if this is something that is fixed in 0.8, so I thought I'd
check here to find out.

Has anyone else encountered this problem? Has it been fixed in 0.8? Do I
need to file a bug?

Thanks,
Matt Layman

Reply via email to