mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
remove extra getters, give names to gobjects
This commit is contained in:
parent
ccbc82d2f5
commit
ff3f064534
12 changed files with 22 additions and 40 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue