mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
remove direct memory access
This commit is contained in:
parent
33369e31ea
commit
19a07cdf1d
32 changed files with 112 additions and 111 deletions
|
|
@ -4,12 +4,12 @@ use super::{Action as WindowAction, BrowserAction, Profile};
|
|||
use adw::{TabView, ToolbarView};
|
||||
use bar::Bar;
|
||||
use gtk::Box;
|
||||
use std::rc::Rc;
|
||||
use std::{rc::Rc, sync::Arc};
|
||||
|
||||
pub trait Header {
|
||||
fn header(
|
||||
action: (&Rc<BrowserAction>, &Rc<WindowAction>),
|
||||
profile: &Rc<Profile>,
|
||||
profile: &Arc<Profile>,
|
||||
tab_view: &TabView,
|
||||
) -> Self;
|
||||
}
|
||||
|
|
@ -20,7 +20,7 @@ impl Header for ToolbarView {
|
|||
/// Build new `Self`
|
||||
fn header(
|
||||
(browser_action, window_action): (&Rc<BrowserAction>, &Rc<WindowAction>),
|
||||
profile: &Rc<Profile>,
|
||||
profile: &Arc<Profile>,
|
||||
tab_view: &TabView,
|
||||
) -> Self {
|
||||
let toolbar_view = ToolbarView::builder().build();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue