mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
use arc on construct
This commit is contained in:
parent
793d179164
commit
e514312f84
3 changed files with 12 additions and 12 deletions
|
|
@ -44,7 +44,7 @@ impl Page {
|
|||
action_tab_page_navigation_history_forward: Arc<SimpleAction>,
|
||||
action_tab_page_navigation_reload: Arc<SimpleAction>,
|
||||
action_update: Arc<SimpleAction>,
|
||||
) -> Page {
|
||||
) -> Arc<Self> {
|
||||
// Init actions
|
||||
let action_page_open = Arc::new(SimpleAction::new(
|
||||
"open",
|
||||
|
|
@ -102,7 +102,7 @@ impl Page {
|
|||
});
|
||||
|
||||
// Return activated structure
|
||||
Self {
|
||||
Arc::new(Self {
|
||||
// GTK
|
||||
widget,
|
||||
// Actions
|
||||
|
|
@ -114,7 +114,7 @@ impl Page {
|
|||
navigation,
|
||||
// Extras
|
||||
meta,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Actions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue