follow new construction protocol

This commit is contained in:
yggverse 2024-09-26 00:59:44 +03:00
parent c03bef9f15
commit 1db706aa5b
7 changed files with 25 additions and 30 deletions

View file

@ -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