2022-07-05 16:52:04 -07:00
|
|
|
use cascade::cascade;
|
2022-06-10 16:20:46 -07:00
|
|
|
use gtk4::{glib, prelude::*};
|
|
|
|
|
|
|
|
|
|
mod deref_cell;
|
|
|
|
|
mod time_button;
|
|
|
|
|
use time_button::TimeButton;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2022-08-10 10:48:20 -04:00
|
|
|
let _ = gtk4::init();
|
|
|
|
|
adw::init();
|
|
|
|
|
|
2022-07-05 16:52:04 -07:00
|
|
|
cascade! {
|
|
|
|
|
libcosmic_applet::AppletWindow::new();
|
|
|
|
|
..set_child(Some(&TimeButton::new()));
|
|
|
|
|
..show();
|
|
|
|
|
};
|
2022-06-10 16:20:46 -07:00
|
|
|
|
|
|
|
|
let main_loop = glib::MainLoop::new(None, false);
|
|
|
|
|
main_loop.run();
|
|
|
|
|
}
|