cosmic-applets/applets/cosmic-applet-time/src/main.rs

20 lines
380 B
Rust
Raw Normal View History

use cascade::cascade;
use gtk4::{glib, prelude::*};
mod deref_cell;
mod time_button;
use time_button::TimeButton;
fn main() {
2022-08-17 21:10:26 -04:00
let _monitors = libcosmic::init();
2022-08-16 14:36:31 -04:00
cascade! {
libcosmic_applet::AppletWindow::new();
..set_child(Some(&TimeButton::new()));
..show();
};
let main_loop = glib::MainLoop::new(None, false);
main_loop.run();
}