From 6f7a21705e61e71bae907f0b5a69967f3bd3cecf Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 10 Nov 2024 11:55:42 +0200 Subject: [PATCH] deactivate not in use constructions --- src/app/browser/window/action/close.rs | 3 ++- src/app/browser/window/action/close_all.rs | 3 ++- src/app/browser/window/tab/item/page.rs | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/browser/window/action/close.rs b/src/app/browser/window/action/close.rs index 68d50eb5..dacf6395 100644 --- a/src/app/browser/window/action/close.rs +++ b/src/app/browser/window/action/close.rs @@ -30,10 +30,11 @@ impl Close { // Actions + /* @TODO not in use /// Emit [activate](https://docs.gtk.org/gio/signal.SimpleAction.activate.html) signal pub fn activate(&self) { self.gobject.activate(None); - } + } */ /// Change action [state](https://docs.gtk.org/gio/method.SimpleAction.set_state.html) /// * set `DEFAULT_STATE` on `None` diff --git a/src/app/browser/window/action/close_all.rs b/src/app/browser/window/action/close_all.rs index 0aa70b4a..6301af94 100644 --- a/src/app/browser/window/action/close_all.rs +++ b/src/app/browser/window/action/close_all.rs @@ -30,10 +30,11 @@ impl CloseAll { // Actions + /* @TODO not in use /// Emit [activate](https://docs.gtk.org/gio/signal.SimpleAction.activate.html) signal pub fn activate(&self) { self.gobject.activate(None); - } + } */ /// Change action [state](https://docs.gtk.org/gio/method.SimpleAction.set_state.html) /// * set `DEFAULT_STATE` on `None` diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index d666606b..6993302a 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -38,7 +38,6 @@ pub struct Page { cancellable: RefCell, // Actions browser_action: Rc, - window_action: Rc, tab_action: Rc, action_page_load: SimpleAction, // Components @@ -93,7 +92,6 @@ impl Page { id, // Actions browser_action, - window_action, tab_action, action_page_load: action_page_load.clone(), // Components