mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
use box container for text content
This commit is contained in:
parent
6150386856
commit
2a3e4048ff
2 changed files with 21 additions and 16 deletions
|
|
@ -127,14 +127,14 @@ impl Content {
|
|||
base,
|
||||
(self.window_action.clone(), self.tab_action.clone()),
|
||||
);
|
||||
self.g_box.append(&text.scrolled_window);
|
||||
self.g_box.append(&text.g_box);
|
||||
text
|
||||
}
|
||||
|
||||
pub fn to_text_source(&self, data: &str) -> Text {
|
||||
self.clean();
|
||||
let text = Text::new_source(data);
|
||||
self.g_box.append(&text.scrolled_window);
|
||||
self.g_box.append(&text.g_box);
|
||||
text
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue