define ptr container outside

This commit is contained in:
yggverse 2024-11-11 01:14:09 +02:00
parent 7b2c07ac45
commit a5fc2a7475
58 changed files with 230 additions and 272 deletions

View file

@ -1,5 +1,4 @@
use gtk::{PackType, WindowControls};
use std::rc::Rc;
pub struct Widget {
gobject: WindowControls,
@ -7,13 +6,13 @@ pub struct Widget {
impl Widget {
// Construct
pub fn new_rc() -> Rc<Self> {
Rc::new(Self {
pub fn new() -> Self {
Self {
gobject: WindowControls::builder()
.side(PackType::End)
.margin_end(4)
.build(),
})
}
}
// Getters