Update show example
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user