mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
apply rustfmt
This commit is contained in:
parent
e6e81e846a
commit
f8d938a8af
24 changed files with 253 additions and 611 deletions
|
|
@ -1,31 +1,20 @@
|
|||
#[path = "tray/menu.rs"] mod menu;
|
||||
#[path = "tray/tab.rs"] mod tab;
|
||||
#[path = "tray/menu.rs"]
|
||||
mod menu;
|
||||
#[path = "tray/tab.rs"]
|
||||
mod tab;
|
||||
|
||||
use gtk::Box;
|
||||
use gtk::prelude::BoxExt;
|
||||
use gtk::Box;
|
||||
|
||||
pub fn new() -> Box
|
||||
{
|
||||
pub fn new() -> Box {
|
||||
let tray = Box::builder()
|
||||
|
||||
// Tuneup
|
||||
.orientation(
|
||||
gtk::Orientation::Horizontal
|
||||
)
|
||||
|
||||
.orientation(gtk::Orientation::Horizontal)
|
||||
.spacing(8)
|
||||
|
||||
// Make
|
||||
.build();
|
||||
|
||||
// Compose childs
|
||||
tray.append(
|
||||
&menu::new()
|
||||
);
|
||||
|
||||
tray.append(
|
||||
&tab::new()
|
||||
);
|
||||
// Compose childs
|
||||
tray.append(&menu::new());
|
||||
tray.append(&tab::new());
|
||||
|
||||
tray
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue