Context::new_notification: Make body arg optional, add icon arg
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user