label_with_widgets: Set wrap-mode

Avoid stretching the window when a message contains long words.
This commit is contained in:
Alexander Mikhaylenko 2022-08-28 00:53:07 +04:00
parent 3f6370fd57
commit fd13541a73

View file

@ -93,6 +93,7 @@ mod imp {
let label = &self.label;
label.set_parent(obj);
label.set_wrap(true);
label.set_wrap_mode(pango::WrapMode::WordChar);
label.set_xalign(0.0);
label.set_valign(gtk::Align::Start);
label.connect_notify_local(