From dc32d00195179b062e2f096feef7df2c0f3233e9 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 14 Oct 2024 04:01:29 +0300 Subject: [PATCH] rename variable --- src/app/browser/window/tab/item/page.rs | 4 ++-- src/app/browser/window/tab/item/page/widget.rs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index 58994307..b1369e8d 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -43,7 +43,7 @@ pub struct Page { impl Page { // Construct pub fn new_arc( - name: GString, + id: GString, action_tab_append: Arc, action_tab_page_navigation_base: Arc, action_tab_page_navigation_history_back: Arc, @@ -72,8 +72,8 @@ impl Page { ); let widget = Widget::new_arc( + &id, action_page_open.clone(), - &name, // ID navigation.gobject(), content.gobject(), ); diff --git a/src/app/browser/window/tab/item/page/widget.rs b/src/app/browser/window/tab/item/page/widget.rs index 300361b5..bb5faf34 100644 --- a/src/app/browser/window/tab/item/page/widget.rs +++ b/src/app/browser/window/tab/item/page/widget.rs @@ -12,10 +12,9 @@ pub struct Widget { impl Widget { // Construct pub fn new_arc( + name: &str, // Actions action_page_open: Arc, - // Options - name: &str, // Components navigation: &Box, content: &Box,