Update `show` example

This commit is contained in:
Mika Attila 2015-03-08 17:14:52 +01:00
parent 4fa9d1d959
commit e2a758d947
1 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@ extern crate libnotify;
fn main() {
let notify = libnotify::Context::new("hello").unwrap();
let n = notify.new_notification("Hello, ", Some("World!"), None).unwrap();
let n = notify.new_notification("This is the summary.",
Some("This is the optional body text."),
None).unwrap();
n.show().unwrap();
}