Skip to content

dialog: Really set ellipsize mode in subtitle and body

Marco Trevisan requested to merge 3v1n0/gnome-shell:ellipsize-dialogs-fix into master

Dialog's subtitle or body could not be properly wrapped, while it's ellipsized when the text's width doesn't exceed the container size.

Clutter text has an ellipsize property, however in dialog's subtitle and body we have been setting the ellipsize-mode property to Pango.EllipsizeMode.NONE that is not present in the underlying GObject.

Not being an error in javascript, gjs didn't warn us about this, while at the same time the St.Label's default Pango.EllipsizeMode.END was used.

Fixes #922 (closed)

Edited by Marco Trevisan

Merge request reports