Make the popup menu less confusing

This commit is contained in:
Peter Cai 2022-11-20 22:41:02 -05:00
parent 886a2cff75
commit 7ac8379f66
1 changed files with 3 additions and 1 deletions

View File

@ -35,11 +35,13 @@ fn init_indicator(icon_pack: &IconPack) -> AppIndicator {
indicator.set_icon_theme_path(icon_pack.pack_path());
indicator.set_status(AppIndicatorStatus::Active);
let mut m = gtk::Menu::new();
let mi = gtk::CheckMenuItem::with_label("I'm a parrot");
let mi = gtk::CheckMenuItem::with_label("Exit");
mi.connect_activate(|_| {
gtk::main_quit();
});
m.append(&mi);
let mi = gtk::CheckMenuItem::with_label("Parrotd by PeterCxy");
m.append(&mi);
indicator.set_menu(&mut m);
m.show_all();
return indicator;