connect bookmark action

This commit is contained in:
yggverse 2024-11-14 08:51:14 +02:00
parent 7b9bd95c09
commit d0a7c3079d
12 changed files with 76 additions and 64 deletions

View file

@ -13,7 +13,7 @@ pub struct Widget {
impl Widget {
// Constructors
pub fn new(window_action: Rc<WindowAction>) -> Self {
pub fn new(action: Rc<WindowAction>) -> Self {
// Init gobject
let gobject = Button::builder()
.icon_name("starred-symbolic")
@ -22,7 +22,7 @@ impl Widget {
.build();
// Init events
gobject.connect_clicked(move |_| window_action.home().activate());
gobject.connect_clicked(move |_| action.home().activate());
// Return activated `Self`
Self { gobject }