mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
remove extra getters
This commit is contained in:
parent
3ce272cd70
commit
0af69d99f6
56 changed files with 240 additions and 710 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use gtk::{
|
||||
gio::SimpleAction,
|
||||
glib::{uuid_string_random, GString, Variant},
|
||||
glib::{uuid_string_random, Variant},
|
||||
prelude::{ActionExt, ToVariant},
|
||||
};
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ const DEFAULT_IS_LOAD: bool = false;
|
|||
|
||||
/// [SimpleAction](https://docs.gtk.org/gio/class.SimpleAction.html) wrapper for `Append` action of `Window` group
|
||||
pub struct Append {
|
||||
gobject: SimpleAction,
|
||||
pub gobject: SimpleAction,
|
||||
}
|
||||
|
||||
impl Append {
|
||||
|
|
@ -183,18 +183,6 @@ impl Append {
|
|||
)
|
||||
});
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
||||
/// Get reference to [SimpleAction](https://docs.gtk.org/gio/class.SimpleAction.html) GObject
|
||||
pub fn gobject(&self) -> &SimpleAction {
|
||||
&self.gobject
|
||||
}
|
||||
|
||||
/// Get auto-generated [action name](https://docs.gtk.org/gio/property.SimpleAction.name.html)
|
||||
pub fn id(&self) -> GString {
|
||||
self.gobject.name()
|
||||
}
|
||||
}
|
||||
|
||||
/// Shared helper to get C-based action state in Optional format
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue