X-GNOME-UsesNotifications=trueto the end of the file. This is needed so that users will be able to set notification preferences for your app in the system's notification settings.
Gtk.ApplicationWindow. Remember what we learned in the last few sections and set up a new
main_window.show ();, write the following lines of code:
var notification = New Notification, add:
URGENTit will stay on the screen until either the user interacts with it, or you withdraw it. To make an urgent notification, add the following line before the
Gtk.Application. If you need some further reading on notifications, Check out the page about