mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-11 02:44:15 +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;
|
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 })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user