mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
follow new construction protocol
This commit is contained in:
parent
c03bef9f15
commit
1db706aa5b
7 changed files with 25 additions and 30 deletions
|
|
@ -1,5 +1,3 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use gtk::{Box, Orientation};
|
||||
|
||||
pub struct Content {
|
||||
|
|
@ -8,10 +6,10 @@ pub struct Content {
|
|||
|
||||
impl Content {
|
||||
// Construct
|
||||
pub fn new() -> Arc<Content> {
|
||||
Arc::new(Self {
|
||||
pub fn new() -> Content {
|
||||
Self {
|
||||
widget: Box::builder().orientation(Orientation::Vertical).build(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue