Browse Source

label_with_widgets: Set wrap-mode

Avoid stretching the window when a message contains long words.
merge-requests/1327/merge
Alexander Mikhaylenko 4 years ago
parent
commit
fd13541a73
  1. 1
      src/components/label_with_widgets.rs

1
src/components/label_with_widgets.rs

@ -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(

Loading…
Cancel
Save