diff --git a/src/app/browser/window/tab/item/page/content/text/plain.rs b/src/app/browser/window/tab/item/page/content/text/plain.rs index 0779b65f..5b7c6132 100644 --- a/src/app/browser/window/tab/item/page/content/text/plain.rs +++ b/src/app/browser/window/tab/item/page/content/text/plain.rs @@ -1,4 +1,4 @@ -use gtk::{TextBuffer, TextView}; +use gtk::TextView; pub trait Plain { fn plain(data: &str) -> Self; @@ -10,13 +10,14 @@ impl Plain for TextView { TextView::builder() .bottom_margin(MARGIN) .cursor_visible(false) - .buffer(&TextBuffer::builder().text(data).build()) + .buffer(>k::TextBuffer::builder().text(data).build()) .editable(false) .left_margin(MARGIN) .monospace(true) .right_margin(MARGIN) .top_margin(MARGIN) .vexpand(true) + .wrap_mode(gtk::WrapMode::Word) .build() } }