mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
define ptr container outside
This commit is contained in:
parent
7b2c07ac45
commit
a5fc2a7475
58 changed files with 230 additions and 272 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue