Make the popup menu less confusing
This commit is contained in:
parent
886a2cff75
commit
7ac8379f66
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue