Package: gio

Class g-notification

Superclasses

g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

None

Details

The g-notification class is a mechanism for creating a notification to be shown to the user -- typically as a pop-up notification presented by the desktop environment shell.

The key difference between the g-notification implementation and other similar APIs is that, if supported by the desktop environment, notifications sent with the g-notification class will persist after the application has exited, and even across system reboots.

Since the user may click on a notification while the application is not running, applications using the g-notification class should be able to be started as a D-Bus service, using the g-application class.

User interaction with a notification, either the default action, or buttons, must be associated with actions on the application, i.e. "app." actions. It is not possible to route user interaction through the notification itself, because the object will not exist if the application is autostarted as a result of a notification being clicked.

A notification can be sent with the g-application-send-notification function.
 

Inherited Slot Access Functions

See also

2021-10-8