remove extra getters, give names to gobjects

This commit is contained in:
yggverse 2024-12-09 21:26:47 +02:00
parent ccbc82d2f5
commit ff3f064534
12 changed files with 22 additions and 40 deletions

View file

@ -8,8 +8,8 @@ use std::rc::Rc;
/// [SimpleActionGroup](https://docs.gtk.org/gio/class.SimpleActionGroup.html) wrapper for `Browser` actions
pub struct Action {
ident: Rc<Ident>,
load: Rc<Load>,
pub ident: Rc<Ident>,
pub load: Rc<Load>,
}
impl Action {
@ -22,16 +22,4 @@ impl Action {
load: Rc::new(Load::new()),
}
}
// Getters
/// Get reference to `Ident` action
pub fn ident(&self) -> &Rc<Ident> {
&self.ident
}
/// Get reference to `Load` action
pub fn load(&self) -> &Rc<Load> {
&self.load
}
}