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

@ -15,20 +15,20 @@ pub struct Header {
impl Header {
// Construct
pub fn new_rc(
pub fn new(
// Actions
browser_action: Rc<BrowserAction>,
window_action: Rc<WindowAction>,
// Widgets
tab_view: &TabView,
) -> Rc<Self> {
) -> Self {
// Init components
let bar = Bar::new_rc(browser_action, window_action, tab_view);
let bar = Bar::new(browser_action, window_action, tab_view);
// Return new struct
Rc::new(Self {
widget: Widget::new_rc(bar.gobject()),
})
Self {
widget: Rc::new(Widget::new(bar.gobject())),
}
}
// Getters