Browse Source

rename variable

master
yggverse 2 months ago
parent
commit
dc32d00195
  1. 4
      src/app/browser/window/tab/item/page.rs
  2. 3
      src/app/browser/window/tab/item/page/widget.rs

4
src/app/browser/window/tab/item/page.rs

@ -43,7 +43,7 @@ pub struct Page { @@ -43,7 +43,7 @@ pub struct Page {
impl Page {
// Construct
pub fn new_arc(
name: GString,
id: GString,
action_tab_append: Arc<SimpleAction>,
action_tab_page_navigation_base: Arc<SimpleAction>,
action_tab_page_navigation_history_back: Arc<SimpleAction>,
@ -72,8 +72,8 @@ impl Page { @@ -72,8 +72,8 @@ impl Page {
);
let widget = Widget::new_arc(
&id,
action_page_open.clone(),
&name, // ID
navigation.gobject(),
content.gobject(),
);

3
src/app/browser/window/tab/item/page/widget.rs

@ -12,10 +12,9 @@ pub struct Widget { @@ -12,10 +12,9 @@ pub struct Widget {
impl Widget {
// Construct
pub fn new_arc(
name: &str,
// Actions
action_page_open: Arc<SimpleAction>,
// Options
name: &str,
// Components
navigation: &Box,
content: &Box,

Loading…
Cancel
Save