add new getters, switch accel target

This commit is contained in:
yggverse 2024-11-10 08:07:44 +02:00
parent 38f945105c
commit 5f280efaf3
4 changed files with 23 additions and 1 deletions

View file

@ -253,6 +253,10 @@ impl Browser {
pub fn gobject(&self) -> &ApplicationWindow {
self.widget.gobject()
}
pub fn window(&self) -> &Rc<Window> {
&self.window
}
}
// Tools

View file

@ -165,6 +165,11 @@ impl Window {
}
// Getters
pub fn tab(&self) -> &Rc<Tab> {
&self.tab
}
pub fn gobject(&self) -> &Box {
self.widget.gobject()
}

View file

@ -396,6 +396,11 @@ impl Tab {
}
// Getters
pub fn action(&self) -> &Rc<Action> {
&self.action
}
pub fn gobject(&self) -> &TabView {
self.widget.gobject()
}