[fractal] label_with_widgets: Set wrap-mode



commit fd13541a736de9f1bd7c6dc7aec502aa0e1cf8ff
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sun Aug 28 00:53:07 2022 +0400

    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 33af9aac7..aa889388e 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(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]