1
0
mirror of https://github.com/YGGverse/Yoda.git synced 2025-03-13 06:01:21 +00:00

use arc pointer

This commit is contained in:
yggverse 2024-09-25 20:54:34 +03:00
parent f00d652a91
commit 1a644ee219

@ -1,3 +1,5 @@
use std::sync::Arc;
use gtk::{Box, Orientation};
pub struct Content {
@ -6,10 +8,10 @@ pub struct Content {
impl Content {
// Construct
pub fn new() -> Content {
Self {
pub fn new() -> Arc<Content> {
Arc::new(Self {
widget: Box::builder().orientation(Orientation::Vertical).build(),
}
})
}
// Getters