Rename new_notification() to new()
This commit is contained in:
@@ -4,9 +4,9 @@ fn main() {
|
||||
// Init libnotify
|
||||
libnotify::init("myapp").unwrap();
|
||||
// Create a new notification and show it
|
||||
let n = libnotify::Notification::new_notification("Summary",
|
||||
Some("Optional Body"),
|
||||
None).unwrap();
|
||||
let n =
|
||||
libnotify::Notification::new("Summary", Some("Optional Body"), None)
|
||||
.unwrap();
|
||||
// Show the notification
|
||||
n.show().unwrap();
|
||||
// You can also use the .show() convenience method on the context
|
||||
|
||||
Reference in New Issue
Block a user