This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** GNOME 3.2 and 3.4: sending a notification to the user. | |
* In this example we provide the Source's icon through the notification rather than the source | |
* (note the 'icon:' property in the object provided as the fourth parameter to the Notification.) | |
*/ | |
// 1. Make a source | |
let source = new MessageTray.Source("source title"); | |
// 2. Make a notification | |
let notification = new MessageTray.Notification(source, | |
"notification title", | |
"notification message", |
NewerOlder