mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
use arc pointer
This commit is contained in:
parent
f00d652a91
commit
1a644ee219
1 changed files with 5 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue