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
|
|
@ -13,7 +13,7 @@ use gtk::{
|
|||
prelude::{BoxExt, WidgetExt},
|
||||
Box, Orientation,
|
||||
};
|
||||
use std::{sync::Arc, time::Duration};
|
||||
use std::{rc::Rc, time::Duration};
|
||||
|
||||
pub struct Content {
|
||||
// GTK
|
||||
|
|
@ -27,8 +27,8 @@ impl Content {
|
|||
// Construct
|
||||
|
||||
/// Create new container for different components
|
||||
pub fn new_arc(action_tab_open: SimpleAction, action_page_open: SimpleAction) -> Arc<Self> {
|
||||
Arc::new(Self {
|
||||
pub fn new_rc(action_tab_open: SimpleAction, action_page_open: SimpleAction) -> Rc<Self> {
|
||||
Rc::new(Self {
|
||||
gobject: Box::builder().orientation(Orientation::Vertical).build(),
|
||||
action_tab_open,
|
||||
action_page_open,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue