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

@ -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