mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
define ptr container outside
This commit is contained in:
parent
7b2c07ac45
commit
a5fc2a7475
58 changed files with 230 additions and 272 deletions
|
|
@ -67,25 +67,25 @@ impl Page {
|
|||
SimpleAction::new(&uuid_string_random(), Some(&String::static_variant_type()));
|
||||
|
||||
// Init components
|
||||
let content = Content::new_rc(tab_action.clone(), action_page_open.clone());
|
||||
let content = Rc::new(Content::new(tab_action.clone(), action_page_open.clone()));
|
||||
|
||||
let navigation = Navigation::new_rc(
|
||||
let navigation = Rc::new(Navigation::new(
|
||||
browser_action.clone(),
|
||||
window_action.clone(),
|
||||
action_page_open.clone(),
|
||||
);
|
||||
));
|
||||
|
||||
let input = Input::new_rc();
|
||||
let input = Rc::new(Input::new());
|
||||
|
||||
let widget = Widget::new_rc(
|
||||
let widget = Rc::new(Widget::new(
|
||||
&id,
|
||||
action_page_open.clone(),
|
||||
navigation.widget().gobject(),
|
||||
content.gobject(),
|
||||
input.gobject(),
|
||||
);
|
||||
));
|
||||
|
||||
let meta = Meta::new_rc(Status::New, gformat!("New page"));
|
||||
let meta = Rc::new(Meta::new(Status::New, gformat!("New page")));
|
||||
|
||||
// Init `Self`
|
||||
let this = Rc::new(Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue