diff --git a/src/browser/main/tab/label/widget.rs b/src/browser/main/tab/label/widget.rs index 7d31a134..b800ef29 100644 --- a/src/browser/main/tab/label/widget.rs +++ b/src/browser/main/tab/label/widget.rs @@ -1,24 +1,24 @@ use gtk::prelude::BoxExt; pub struct Label { - gtk: gtk::Box, + container: gtk::Box, } impl Label { // Construct new object pub fn new(pin: >k::Image, title: >k::Label) -> Label { - let gtk = gtk::Box::builder() + let container = gtk::Box::builder() .orientation(gtk::Orientation::Horizontal) .build(); - gtk.append(pin); - gtk.append(title); + container.append(pin); + container.append(title); - Self { gtk } + Self { container } } // Getters - pub fn gtk(&self) -> >k::Box { - &self.gtk + pub fn container(&self) -> >k::Box { + &self.container } } diff --git a/src/browser/main/tab/mod.rs b/src/browser/main/tab/mod.rs index 824eb7c2..acb96791 100644 --- a/src/browser/main/tab/mod.rs +++ b/src/browser/main/tab/mod.rs @@ -17,8 +17,8 @@ impl Tab { // Actions pub fn append(&self, current: bool) -> u32 { self.widget.append( - label::Label::new().widget().gtk(), - page::Page::new().widget().gtk(), + label::Label::new().widget().container(), + page::Page::new().widget().container(), current, ) } diff --git a/src/browser/main/tab/page/widget.rs b/src/browser/main/tab/page/widget.rs index 09a69b7e..b46887b2 100644 --- a/src/browser/main/tab/page/widget.rs +++ b/src/browser/main/tab/page/widget.rs @@ -1,24 +1,24 @@ use gtk::prelude::BoxExt; pub struct Page { - gtk: gtk::Box, + container: gtk::Box, } impl Page { // Construct pub fn new(navigation: >k::Box, content: >k::Box) -> Page { - let gtk = gtk::Box::builder() + let container = gtk::Box::builder() .orientation(gtk::Orientation::Vertical) .build(); - gtk.append(navigation); - gtk.append(content); + container.append(navigation); + container.append(content); - Self { gtk } + Self { container } } // Getters - pub fn gtk(&self) -> >k::Box { - &self.gtk + pub fn container(&self) -> >k::Box { + &self.container } }