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"],
|
&["<Primary>u"],
|
||||||
),
|
),
|
||||||
|
// Tab actions
|
||||||
|
(
|
||||||
|
gformat!(
|
||||||
|
"{}.{}",
|
||||||
|
browser.window().tab().action().id(),
|
||||||
|
browser.window().tab().action().append().id()
|
||||||
|
),
|
||||||
|
&["<Primary>t"],
|
||||||
|
),
|
||||||
// @TODO
|
// @TODO
|
||||||
(
|
(
|
||||||
gformat!("win.{}", action_page_reload.name()),
|
gformat!("win.{}", action_page_reload.name()),
|
||||||
@ -211,7 +220,6 @@ impl App {
|
|||||||
&["<Primary>Right"],
|
&["<Primary>Right"],
|
||||||
),
|
),
|
||||||
(gformat!("win.{}", action_page_home.name()), &["<Primary>h"]),
|
(gformat!("win.{}", action_page_home.name()), &["<Primary>h"]),
|
||||||
(gformat!("win.{}", action_page_new.name()), &["<Primary>t"]),
|
|
||||||
(gformat!("win.{}", action_page_pin.name()), &["<Primary>p"]),
|
(gformat!("win.{}", action_page_pin.name()), &["<Primary>p"]),
|
||||||
// @TODO page close missed
|
// @TODO page close missed
|
||||||
] {
|
] {
|
||||||
|
@ -253,6 +253,10 @@ impl Browser {
|
|||||||
pub fn gobject(&self) -> &ApplicationWindow {
|
pub fn gobject(&self) -> &ApplicationWindow {
|
||||||
self.widget.gobject()
|
self.widget.gobject()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn window(&self) -> &Rc<Window> {
|
||||||
|
&self.window
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tools
|
// Tools
|
||||||
|
@ -165,6 +165,11 @@ impl Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
|
||||||
|
pub fn tab(&self) -> &Rc<Tab> {
|
||||||
|
&self.tab
|
||||||
|
}
|
||||||
|
|
||||||
pub fn gobject(&self) -> &Box {
|
pub fn gobject(&self) -> &Box {
|
||||||
self.widget.gobject()
|
self.widget.gobject()
|
||||||
}
|
}
|
||||||
|
@ -396,6 +396,11 @@ impl Tab {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Getters
|
// Getters
|
||||||
|
|
||||||
|
pub fn action(&self) -> &Rc<Action> {
|
||||||
|
&self.action
|
||||||
|
}
|
||||||
|
|
||||||
pub fn gobject(&self) -> &TabView {
|
pub fn gobject(&self) -> &TabView {
|
||||||
self.widget.gobject()
|
self.widget.gobject()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user