2024-09-20 18:02:10 +03:00
|
|
|
mod menu;
|
|
|
|
mod tab;
|
2024-09-19 11:29:03 +03:00
|
|
|
|
|
|
|
use gtk::prelude::BoxExt;
|
2024-09-20 18:02:10 +03:00
|
|
|
use gtk::Box;
|
2024-09-19 11:29:03 +03:00
|
|
|
|
2024-09-20 18:02:10 +03:00
|
|
|
pub fn new() -> Box {
|
2024-09-19 11:29:03 +03:00
|
|
|
let tray = Box::builder()
|
2024-09-20 18:02:10 +03:00
|
|
|
.orientation(gtk::Orientation::Horizontal)
|
2024-09-19 11:29:03 +03:00
|
|
|
.spacing(8)
|
|
|
|
.build();
|
|
|
|
|
2024-09-20 18:02:10 +03:00
|
|
|
// Compose childs
|
|
|
|
tray.append(&menu::new());
|
|
|
|
tray.append(&tab::new());
|
2024-09-19 11:29:03 +03:00
|
|
|
|
2024-09-19 18:08:09 +03:00
|
|
|
tray
|
2024-09-20 18:02:10 +03:00
|
|
|
}
|