[fractal] audio player: Set line wrap to word-char



commit 1c6ed31e27ff220b6e801e15c0920745825d2006
Author: James Westman <james flyingpimonster net>
Date:   Mon Jun 15 14:31:07 2020 -0500

    audio player: Set line wrap to word-char
    
    In the inline audio player, set the filename label's wrap-mode property to
    WORD_CHAR. This way, it can wrap on very long filenames, rather than restricting
    the size of the window.
    
    Fixes #605.

 fractal-gtk/src/widgets/message.rs | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/fractal-gtk/src/widgets/message.rs b/fractal-gtk/src/widgets/message.rs
index d691f5c1..3b493eed 100644
--- a/fractal-gtk/src/widgets/message.rs
+++ b/fractal-gtk/src/widgets/message.rs
@@ -431,6 +431,7 @@ impl MessageBox {
         file_name.set_use_markup(true);
         file_name.set_xalign(0.0);
         file_name.set_line_wrap(true);
+        file_name.set_line_wrap_mode(pango::WrapMode::WordChar);
         outer_box.pack_start(&file_name, false, false, 0);
         outer_box.pack_start(&bx, false, false, 0);
         outer_box.get_style_context().add_class("audio-box");


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