2024-09-19 11:29:03 +03:00
|
|
|
#[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)
|
|
|
|
|
2024-09-19 18:08:09 +03:00
|
|
|
// Make
|
2024-09-19 11:29:03 +03:00
|
|
|
.build();
|
|
|
|
|
2024-09-19 18:08:09 +03:00
|
|
|
// Compose childs
|
|
|
|
tray.append(
|
|
|
|
&menu::new()
|
|
|
|
);
|
2024-09-19 11:29:03 +03:00
|
|
|
|
2024-09-19 18:08:09 +03:00
|
|
|
tray.append(
|
|
|
|
&tab::new()
|
|
|
|
);
|
2024-09-19 11:29:03 +03:00
|
|
|
|
2024-09-19 18:08:09 +03:00
|
|
|
tray
|
2024-09-19 11:29:03 +03:00
|
|
|
}
|