Implement a rudimentary API for showing a message.

This commit is contained in:
Mika Attila
2015-03-07 13:55:19 +01:00
parent 67a9f17d0e
commit 2d06fb7cc3
4 changed files with 109 additions and 1 deletions

9
examples/show.rs Normal file
View File

@@ -0,0 +1,9 @@
extern crate libnotify;
fn main() {
let n = {
let notify = libnotify::Context::new("hello").unwrap();
notify.new_notification("Hello, ", "World!").unwrap()
};
n.show().unwrap();
}