diff --git a/src/app.rs b/src/app.rs index 1b1a4f4e..49e343b2 100644 --- a/src/app.rs +++ b/src/app.rs @@ -197,6 +197,15 @@ impl App { ), &["u"], ), + // Tab actions + ( + gformat!( + "{}.{}", + browser.window().tab().action().id(), + browser.window().tab().action().append().id() + ), + &["t"], + ), // @TODO ( gformat!("win.{}", action_page_reload.name()), @@ -211,7 +220,6 @@ impl App { &["Right"], ), (gformat!("win.{}", action_page_home.name()), &["h"]), - (gformat!("win.{}", action_page_new.name()), &["t"]), (gformat!("win.{}", action_page_pin.name()), &["p"]), // @TODO page close missed ] { diff --git a/src/app/browser.rs b/src/app/browser.rs index f2cf4e8c..0185ae30 100644 --- a/src/app/browser.rs +++ b/src/app/browser.rs @@ -253,6 +253,10 @@ impl Browser { pub fn gobject(&self) -> &ApplicationWindow { self.widget.gobject() } + + pub fn window(&self) -> &Rc { + &self.window + } } // Tools diff --git a/src/app/browser/window.rs b/src/app/browser/window.rs index 17dbff7c..13dee8ea 100644 --- a/src/app/browser/window.rs +++ b/src/app/browser/window.rs @@ -165,6 +165,11 @@ impl Window { } // Getters + + pub fn tab(&self) -> &Rc { + &self.tab + } + pub fn gobject(&self) -> &Box { self.widget.gobject() } diff --git a/src/app/browser/window/tab.rs b/src/app/browser/window/tab.rs index 4be9ba99..435cd8f2 100644 --- a/src/app/browser/window/tab.rs +++ b/src/app/browser/window/tab.rs @@ -396,6 +396,11 @@ impl Tab { } // Getters + + pub fn action(&self) -> &Rc { + &self.action + } + pub fn gobject(&self) -> &TabView { self.widget.gobject() }