1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! Rust bindings for the AppIndicator and AyatanaAppIndicator libraries.
//!
//! Allows applications to export a menu into the an Application Indicators aware menu bar.
//! Based on KSNI it also works in KDE and will fallback to generic Systray support if none
//! of those are available.
//!
//! # Usage
//!
//! Add the following to your `Cargo.toml`:
//!
//! ```toml
//! [dependencies]
//! gtk = "0.15"
//! appindicator3 = "0.1.0"
//! ```
//!
//! Next:
//!
//! ```rust
//! fn main() {
//! gtk::init().unwrap();
//!
//! let m = gtk::Menu::new();
//! let mi = gtk::MenuItem::with_label("Hello World");
//! mi.connect_activate(|_| {
//! gtk::main_quit();
//! });
//! m.add(&mi);
//! mi.show_all();
//!
//! let _indicator = Indicator::builder("Example")
//! .category(IndicatorCategory::ApplicationStatus)
//! .menu(&m)
//! .icon("face-smile", "icon")
//! .status(IndicatorStatus::Active)
//! .build();
//!
//! gtk::main();
//! }
//! ```
pub use ffi;
pub use glib;
pub use crate*;
pub use crateIndicatorBuilder;
pub use crate*;