Class

PhoshNotification

Description [src]

class Phosh.Notification : GObject.Object {
  parent_instance: GObject
}

A notification

A PhoshNotification with summary, body, icon, actions, etc.

Ancestors

Constructors

phosh_notification_new
No description available.

Instance methods

phosh_notification_activate
No description available.
phosh_notification_close
No description available.
phosh_notification_do_action
No description available.
phosh_notification_expires

Set self to expire after timeout (from this call)

phosh_notification_get_actions
No description available.
phosh_notification_get_app_icon
No description available.
phosh_notification_get_app_info
No description available.
phosh_notification_get_app_name
No description available.
phosh_notification_get_body
No description available.
phosh_notification_get_category

Get the category hint the notification was sent with.

phosh_notification_get_id
No description available.
phosh_notification_get_image
No description available.
phosh_notification_get_resident

When TRUE invoking an action doesn’t dismiss the notification.

phosh_notification_get_summary
No description available.
phosh_notification_get_timestamp
No description available.
phosh_notification_get_transient

Transient notifications don’t go to the message tray.

phosh_notification_get_urgency
No description available.
phosh_notification_set_actions
No description available.
phosh_notification_set_app_icon
No description available.
phosh_notification_set_app_info
No description available.
phosh_notification_set_app_name
No description available.
phosh_notification_set_body
No description available.
phosh_notification_set_category

Set the type of notification, such as “email.arrived”

phosh_notification_set_id
No description available.
phosh_notification_set_image
No description available.
phosh_notification_set_resident

Set whether of not invoking actions dismiss self.

phosh_notification_set_summary
No description available.
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
No description available.
Methods inherited from GObject (42)

Please see GObject for a full list of methods.

Properties

Phosh.Notification:actions
No description available.
Phosh.Notification:app-icon
No description available.
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
No description available.
Phosh.Notification:body
No description available.
Phosh.Notification:category
No description available.
Phosh.Notification:id
No description available.
Phosh.Notification:image
No description available.
Phosh.Notification:resident
No description available.
Phosh.Notification:summary
No description available.
Phosh.Notification:timestamp
No description available.
Phosh.Notification:transient
No description available.
Phosh.Notification:urgency
No description available.

Signals

Phosh.Notification::actioned
No description available.
Phosh.Notification::closed
No description available.
Phosh.Notification::expired
No description available.
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
GObjectClass
 

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
void (* do_action) (
    PhoshNotification* self,
    guint id,
    const char* action
  )
  No description available.

Virtual methods

Phosh.NotificationClass.do_action
No description available.