GtkLabel: Allow to ellipsize to a single line instead of a single line by paragraph
This is somewhat related to #4714 and #4630.
Currently the lines
property only affects the number of lines per paragraph, as it is changed to a negative number before being passed to pango_layout_set_height
. However the value 0
is not forwarded although it would allow to ellipsize the whole layout to a single line, according to the PangoLayout
docs.
It's also worth mentioning that with the current docs, I would expect the lines
property to apply to the whole content of the label instead of applying to paragraphs within the label.
For context, I am working on Fractal and we would like to ellipsize user-generated content that might contain several paragraphs.
Edited by Kévin Commaille