Browse Source

reorder dependencies use, add comments

master
yggverse 2 months ago
parent
commit
d36dbcd4ad
  1. 8
      src/browser/main/tab/page/navigation/mod.rs

8
src/browser/main/tab/page/navigation/mod.rs

@ -4,27 +4,28 @@ mod history; @@ -4,27 +4,28 @@ mod history;
mod reload;
mod request;
use gtk::prelude::BoxExt;
use gtk::{Box, Orientation};
use base::Base;
use bookmark::Bookmark;
use history::History;
use reload::Reload;
use request::Request;
use gtk::{prelude::BoxExt, Box, Orientation};
pub struct Navigation {
widget: Box,
}
impl Navigation {
pub fn new() -> Navigation {
// Init components
let base = Base::new();
let history = History::new();
let reload = Reload::new();
let request = Request::new();
let bookmark = Bookmark::new();
// Init widget
let widget = Box::builder()
.orientation(Orientation::Horizontal)
.spacing(8)
@ -40,6 +41,7 @@ impl Navigation { @@ -40,6 +41,7 @@ impl Navigation {
widget.append(request.widget());
widget.append(bookmark.widget());
// Result
Self { widget }
}

Loading…
Cancel
Save