Context::new_notification: Make body arg optional, add icon arg

This commit is contained in:
Mika Attila
2015-03-08 16:59:15 +01:00
parent a0a98a6521
commit 0e83385a01
2 changed files with 27 additions and 7 deletions

View File

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