26 lines
606 B
Rust
26 lines
606 B
Rust
use cascade::cascade;
|
|
use gtk4::{glib, prelude::*};
|
|
|
|
mod deref_cell;
|
|
mod status_area;
|
|
mod status_menu;
|
|
mod status_notifier_watcher;
|
|
|
|
use status_area::StatusArea;
|
|
|
|
fn main() {
|
|
let _monitors = libcosmic::init();
|
|
|
|
// XXX Implement DBus service somewhere other than applet?
|
|
glib::MainContext::default().spawn_local(status_notifier_watcher::start());
|
|
|
|
let status_area = StatusArea::new();
|
|
cascade! {
|
|
libcosmic_applet::AppletWindow::new();
|
|
..set_child(Some(&status_area));
|
|
..show();
|
|
};
|
|
|
|
let main_loop = glib::MainLoop::new(None, false);
|
|
main_loop.run();
|
|
}
|