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:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user