mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-07 00:44:13 +00:00
30 lines
426 B
Rust
30 lines
426 B
Rust
![]() |
#[path = "tray/menu.rs"] mod menu;
|
||
|
#[path = "tray/tab.rs"] mod tab;
|
||
|
|
||
|
use gtk::Box;
|
||
|
use gtk::prelude::BoxExt;
|
||
|
|
||
|
pub fn new() -> Box
|
||
|
{
|
||
|
let tray = Box::builder()
|
||
|
|
||
|
// Tuneup
|
||
|
.orientation(
|
||
|
gtk::Orientation::Horizontal
|
||
|
)
|
||
|
|
||
|
.spacing(8)
|
||
|
|
||
|
.build();
|
||
|
|
||
|
// Compose childs
|
||
|
tray.append(
|
||
|
&menu::new()
|
||
|
);
|
||
|
|
||
|
tray.append(
|
||
|
&tab::new()
|
||
|
);
|
||
|
|
||
|
return tray;
|
||
|
}
|