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

@ -9,7 +9,7 @@ use std::{cell::RefCell, rc::Rc};
pub struct Home {
action: Rc<WindowAction>,
uri: RefCell<Option<Uri>>,
widget: Rc<Widget>,
pub widget: Rc<Widget>,
}
impl Home {
@ -34,16 +34,13 @@ impl Home {
self.uri.replace(uri);
// Update action status
self.action.home().gobject().set_enabled(status);
self.action.home.gobject.set_enabled(status);
// Update child components
self.widget.update(status);
}
// Getters
pub fn widget(&self) -> &Rc<Widget> {
&self.widget
}
pub fn url(&self) -> Option<GString> {
// Build URL from parsed URI cache