From fd13541a736de9f1bd7c6dc7aec502aa0e1cf8ff Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko Date: Sun, 28 Aug 2022 00:53:07 +0400 Subject: [PATCH] label_with_widgets: Set wrap-mode Avoid stretching the window when a message contains long words. --- src/components/label_with_widgets.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/label_with_widgets.rs b/src/components/label_with_widgets.rs index 33af9aac..aa889388 100644 --- a/src/components/label_with_widgets.rs +++ b/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(