mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
set wrap mode
This commit is contained in:
parent
af27ca9821
commit
67790a0f50
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue