mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-05 07:54:14 +00:00
set wrap mode
This commit is contained in:
parent
af27ca9821
commit
67790a0f50
@ -1,4 +1,4 @@
|
||||
use gtk::{prelude::WidgetExt, TextView};
|
||||
use gtk::{prelude::WidgetExt, TextView, WrapMode};
|
||||
use std::sync::Arc;
|
||||
|
||||
pub struct Widget {
|
||||
@ -13,6 +13,7 @@ impl Widget {
|
||||
.pixels_above_lines(8)
|
||||
.pixels_below_lines(8)
|
||||
.right_margin(8)
|
||||
.wrap_mode(WrapMode::Word)
|
||||
.build();
|
||||
|
||||
Arc::new(Self { gobject })
|
||||
|
Loading…
x
Reference in New Issue
Block a user