set wrap mode

This commit is contained in:
yggverse 2024-10-16 11:11:44 +03:00
parent af27ca9821
commit 67790a0f50

View File

@ -1,4 +1,4 @@
use gtk::{prelude::WidgetExt, TextView}; use gtk::{prelude::WidgetExt, TextView, WrapMode};
use std::sync::Arc; use std::sync::Arc;
pub struct Widget { pub struct Widget {
@ -13,6 +13,7 @@ impl Widget {
.pixels_above_lines(8) .pixels_above_lines(8)
.pixels_below_lines(8) .pixels_below_lines(8)
.right_margin(8) .right_margin(8)
.wrap_mode(WrapMode::Word)
.build(); .build();
Arc::new(Self { gobject }) Arc::new(Self { gobject })