use arc pointer

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

View file

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