mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
replace arc with rc
This commit is contained in:
parent
a0e923eb7d
commit
c843e5b7c0
62 changed files with 317 additions and 334 deletions
|
|
@ -16,13 +16,13 @@ use gtk::{
|
|||
FileLauncher,
|
||||
};
|
||||
use sqlite::Transaction;
|
||||
use std::{path::PathBuf, sync::Arc};
|
||||
use std::{path::PathBuf, rc::Rc};
|
||||
|
||||
pub struct Browser {
|
||||
// Components
|
||||
// header: Arc<Header>,
|
||||
window: Arc<Window>,
|
||||
widget: Arc<Widget>,
|
||||
// header: Rc<Header>,
|
||||
window: Rc<Window>,
|
||||
widget: Rc<Widget>,
|
||||
}
|
||||
|
||||
impl Browser {
|
||||
|
|
@ -46,7 +46,7 @@ impl Browser {
|
|||
action_page_pin: SimpleAction,
|
||||
) -> Browser {
|
||||
// Init components
|
||||
let window = Arc::new(Window::new(
|
||||
let window = Rc::new(Window::new(
|
||||
action_about.clone(),
|
||||
action_debug.clone(),
|
||||
action_profile.clone(),
|
||||
|
|
@ -63,7 +63,7 @@ impl Browser {
|
|||
));
|
||||
|
||||
// Init widget
|
||||
let widget = Arc::new(Widget::new(
|
||||
let widget = Rc::new(Widget::new(
|
||||
window.gobject(),
|
||||
&[
|
||||
action_about.clone(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue