mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
rename constructors
This commit is contained in:
parent
941b1cc283
commit
edb385f903
36 changed files with 266 additions and 180 deletions
|
|
@ -15,17 +15,22 @@ pub struct Header {
|
|||
impl Header {
|
||||
// Constructors
|
||||
|
||||
pub fn new(
|
||||
/// Build new `Self`
|
||||
pub fn build(
|
||||
(browser_action, window_action): (&Rc<BrowserAction>, &Rc<WindowAction>),
|
||||
profile: &Rc<Profile>,
|
||||
tab_view: &TabView,
|
||||
) -> Self {
|
||||
// Init components
|
||||
let bar = Rc::new(Bar::new((browser_action, window_action), profile, tab_view));
|
||||
let bar = Rc::new(Bar::build(
|
||||
(browser_action, window_action),
|
||||
profile,
|
||||
tab_view,
|
||||
));
|
||||
|
||||
// Return new struct
|
||||
Self {
|
||||
widget: Rc::new(Widget::new(&bar.widget.g_box)),
|
||||
widget: Rc::new(Widget::build(&bar.widget.g_box)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue