remove extra getters, give gobject names

This commit is contained in:
yggverse 2024-12-02 14:28:07 +02:00
parent cd49b36887
commit 2a59bebea9
17 changed files with 104 additions and 221 deletions

View file

@ -7,12 +7,11 @@ use sensitive::Sensitive;
use widget::Widget;
use crate::app::browser::window::tab::item::Action as TabAction;
use adw::Clamp;
use gtk::glib::Uri;
use std::rc::Rc;
pub struct Input {
widget: Rc<Widget>,
pub widget: Rc<Widget>,
}
impl Input {
@ -54,9 +53,4 @@ impl Input {
Sensitive::new(action, base, title, max_length).gobject(),
));
}
// Getters
pub fn gobject(&self) -> &Clamp {
self.widget.gobject()
}
}