mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
add new getters, switch accel target
This commit is contained in:
parent
38f945105c
commit
5f280efaf3
10
src/app.rs
10
src/app.rs
@ -197,6 +197,15 @@ impl App {
|
||||
),
|
||||
&["<Primary>u"],
|
||||
),
|
||||
// Tab actions
|
||||
(
|
||||
gformat!(
|
||||
"{}.{}",
|
||||
browser.window().tab().action().id(),
|
||||
browser.window().tab().action().append().id()
|
||||
),
|
||||
&["<Primary>t"],
|
||||
),
|
||||
// @TODO
|
||||
(
|
||||
gformat!("win.{}", action_page_reload.name()),
|
||||
@ -211,7 +220,6 @@ impl App {
|
||||
&["<Primary>Right"],
|
||||
),
|
||||
(gformat!("win.{}", action_page_home.name()), &["<Primary>h"]),
|
||||
(gformat!("win.{}", action_page_new.name()), &["<Primary>t"]),
|
||||
(gformat!("win.{}", action_page_pin.name()), &["<Primary>p"]),
|
||||
// @TODO page close missed
|
||||
] {
|
||||
|
@ -253,6 +253,10 @@ impl Browser {
|
||||
pub fn gobject(&self) -> &ApplicationWindow {
|
||||
self.widget.gobject()
|
||||
}
|
||||
|
||||
pub fn window(&self) -> &Rc<Window> {
|
||||
&self.window
|
||||
}
|
||||
}
|
||||
|
||||
// Tools
|
||||
|
@ -165,6 +165,11 @@ impl Window {
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
||||
pub fn tab(&self) -> &Rc<Tab> {
|
||||
&self.tab
|
||||
}
|
||||
|
||||
pub fn gobject(&self) -> &Box {
|
||||
self.widget.gobject()
|
||||
}
|
||||
|
@ -396,6 +396,11 @@ impl Tab {
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
||||
pub fn action(&self) -> &Rc<Action> {
|
||||
&self.action
|
||||
}
|
||||
|
||||
pub fn gobject(&self) -> &TabView {
|
||||
self.widget.gobject()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user