remove extra getters

This commit is contained in:
yggverse 2024-11-28 01:35:48 +02:00
parent 3ce272cd70
commit 0af69d99f6
56 changed files with 240 additions and 710 deletions

View file

@ -7,7 +7,7 @@ const ICON_YES: &str = "starred-symbolic";
const ICON_NON: &str = "non-starred-symbolic";
pub struct Widget {
gobject: Button,
pub gobject: Button,
}
impl Widget {
@ -21,7 +21,7 @@ impl Widget {
.build();
// Init events
gobject.connect_clicked(move |_| action.bookmark().activate());
gobject.connect_clicked(move |_| action.bookmark.activate());
// Return activated `Self`
Self { gobject }
@ -33,10 +33,4 @@ impl Widget {
self.gobject
.set_icon_name(if has_bookmark { ICON_YES } else { ICON_NON });
}
// Getters
pub fn gobject(&self) -> &Button {
&self.gobject
}
}