From 2f6059db2f35597b5de46152fecc83d98779ca0d Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 12 Dec 2024 13:21:16 +0200 Subject: [PATCH] give name to gobject --- src/app/browser/window/tab/item/page.rs | 2 +- .../window/tab/item/page/navigation/widget.rs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index c739c273..d9a118f6 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -70,7 +70,7 @@ impl Page { let widget = Rc::new(Widget::new( &id, - &navigation.widget.gobject, + &navigation.widget.g_box, &content.g_box, &input.widget.clamp, )); diff --git a/src/app/browser/window/tab/item/page/navigation/widget.rs b/src/app/browser/window/tab/item/page/navigation/widget.rs index 51ca2f57..c5c83280 100644 --- a/src/app/browser/window/tab/item/page/navigation/widget.rs +++ b/src/app/browser/window/tab/item/page/navigation/widget.rs @@ -7,7 +7,7 @@ const MARGIN: i32 = 6; const SPACING: i32 = 6; pub struct Widget { - pub gobject: Box, + pub g_box: Box, } impl Widget { @@ -19,7 +19,7 @@ impl Widget { request: &impl IsA, bookmark: &impl IsA, ) -> Self { - let gobject = Box::builder() + let g_box = Box::builder() .orientation(Orientation::Horizontal) .spacing(SPACING) .margin_start(MARGIN) @@ -27,12 +27,12 @@ impl Widget { .margin_bottom(MARGIN) .build(); - gobject.append(base); - gobject.append(history); - gobject.append(reload); - gobject.append(request); - gobject.append(bookmark); + g_box.append(base); + g_box.append(history); + g_box.append(reload); + g_box.append(request); + g_box.append(bookmark); - Self { gobject } + Self { g_box } } }