extern crate gtk;
extern crate libayatana_appindicator;
use std::env;
use std::path::Path;
use gtk::prelude::*;
use libayatana_appindicator::{AppIndicator, AppIndicatorStatus};
fn main() {
gtk::init().unwrap();
let mut indicator =
AppIndicator::new("libayatana-appindicator test application", "");
indicator.set_status(AppIndicatorStatus::Active);
let icon_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("examples");
indicator.set_icon_theme_path(icon_path.to_str().unwrap());
indicator.set_icon_full("rust-logo-64x64-blk", "icon");
let mut m = gtk::Menu::new();
let mi = gtk::CheckMenuItem::with_label("Hello RUST");
mi.connect_activate(|_| {
gtk::main_quit();
});
m.append(&mi);
indicator.set_menu(&mut m);
m.show_all();
gtk::main();
}