Implement a rudimentary API for showing a message.
This commit is contained in:
9
examples/show.rs
Normal file
9
examples/show.rs
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user