replace arc with rc

This commit is contained in:
yggverse 2024-11-08 05:21:08 +02:00
parent a0e923eb7d
commit c843e5b7c0
62 changed files with 317 additions and 334 deletions

View file

@ -1,6 +1,6 @@
use adw::ToolbarView;
use gtk::Box;
use std::sync::Arc;
use std::rc::Rc;
pub struct Widget {
gobject: ToolbarView,
@ -8,12 +8,12 @@ pub struct Widget {
impl Widget {
// Construct
pub fn new_arc(top_bar: &Box) -> Arc<Self> {
pub fn new_rc(top_bar: &Box) -> Rc<Self> {
let gobject = ToolbarView::builder().build();
gobject.add_top_bar(top_bar);
Arc::new(Self { gobject })
Rc::new(Self { gobject })
}
// Getters