Class
PhoshNotification
Description [src]
class Phosh.Notification : GObject.Object {
parent_instance: GObject
}
A notification
A PhoshNotification
with summary, body, icon, actions, etc.
Constructors
phosh_notification_new
Instance methods
phosh_notification_activate
phosh_notification_close
phosh_notification_do_action
phosh_notification_expires
Set self
to expire after timeout
(from this call)
phosh_notification_get_actions
phosh_notification_get_app_icon
phosh_notification_get_app_info
phosh_notification_get_app_name
phosh_notification_get_body
phosh_notification_get_category
Get the category hint the notification was sent with.
phosh_notification_get_id
phosh_notification_get_image
phosh_notification_get_resident
When TRUE
invoking an action doesn’t dismiss the notification.
phosh_notification_get_summary
phosh_notification_get_timestamp
phosh_notification_get_transient
Transient notifications don’t go to the message tray.
phosh_notification_get_urgency
phosh_notification_set_actions
phosh_notification_set_app_icon
phosh_notification_set_app_info
phosh_notification_set_app_name
phosh_notification_set_body
phosh_notification_set_category
Set the type of notification, such as “email.arrived”
phosh_notification_set_id
phosh_notification_set_image
phosh_notification_set_resident
Set whether of not invoking actions dismiss self
.
phosh_notification_set_summary
phosh_notification_set_timestamp
Sets the timestamp of a notification. If NULL
is passed it’s set
to the current date and time.
phosh_notification_set_transient
Set if self
should go to the message tray.
phosh_notification_set_urgency
Properties
Phosh.Notification:actions
Phosh.Notification:app-icon
Phosh.Notification:app-info
When non-NULL
this overrides the values of PhoshNotification:app-name
and PhoshNotification:app-icon
with those from the GAppInfo
.
Phosh.Notification:app-name
Phosh.Notification:body
Phosh.Notification:category
Phosh.Notification:id
Phosh.Notification:image
Phosh.Notification:resident
Phosh.Notification:summary
Phosh.Notification:timestamp
Phosh.Notification:transient
Phosh.Notification:urgency
Signals
Phosh.Notification::actioned
Phosh.Notification::closed
Phosh.Notification::expired
Signals inherited from GObject (1)
GObject.Object::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct PhoshNotificationClass {
GObjectClass parent_class;
void (* do_action) (
PhoshNotification* self,
guint id,
const char* action
);
}
Class members
parent_class |
|
The object class structure needs to be the first element in the widget class structure in order for the class mechanism to work correctly. This allows a PhoshNotificationClass pointer to be cast to a GObjectClass pointer. |
|
do_action |
|
No description available. |