mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
apply rustfmt
This commit is contained in:
parent
e6e81e846a
commit
f8d938a8af
24 changed files with 253 additions and 611 deletions
|
|
@ -1,34 +1,22 @@
|
|||
#[path = "history/back.rs"] mod back;
|
||||
#[path = "history/forward.rs"] mod forward;
|
||||
#[path = "history/back.rs"]
|
||||
mod back;
|
||||
#[path = "history/forward.rs"]
|
||||
mod forward;
|
||||
|
||||
use gtk::Box;
|
||||
use gtk::prelude::BoxExt;
|
||||
use gtk::Box;
|
||||
|
||||
pub fn new() -> Box
|
||||
{
|
||||
pub fn new() -> Box {
|
||||
let history = Box::builder()
|
||||
|
||||
// Tuneup
|
||||
.orientation(
|
||||
gtk::Orientation::Horizontal
|
||||
)
|
||||
|
||||
.css_classes(
|
||||
[
|
||||
"linked" // merge childs
|
||||
]
|
||||
)
|
||||
|
||||
.orientation(gtk::Orientation::Horizontal)
|
||||
.css_classes([
|
||||
"linked", // merge childs
|
||||
])
|
||||
.build();
|
||||
|
||||
// Compose childs
|
||||
history.append(
|
||||
&back::new()
|
||||
);
|
||||
history.append(&back::new());
|
||||
history.append(&forward::new());
|
||||
|
||||
history.append(
|
||||
&forward::new()
|
||||
);
|
||||
|
||||
return history;
|
||||
}
|
||||
history
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue