Class
IdeNotification
Functions
ide_notification_file_progress_callback
This function is a GFileProgressCallback
helper that will update the
IdeNotification:fraction
property. user_data
must be an IdeNotification
.
Instance methods
ide_notification_add_button_with_target_value
Adds a new button, used the parsed GVariant
format for the action target.
ide_notification_attach
This function will locate the IdeNotifications
object starting from
object
and attach self
as a child to that object.
ide_notification_dup_body
Copies the current body and returns it to the caller after locking the object. A copy is used to avoid thread-races.
ide_notification_dup_id
Copies the id of the notification and returns it to the caller after locking the object. A copy is used to avoid thread-races.
ide_notification_dup_title
Copies the current title and returns it to the caller after locking the object. A copy is used to avoid thread-races.
ide_notification_get_button
Gets the button indexed by button
, and stores information about the
button into the various out parameters label
, icon
, action
, and target
.
ide_notification_ref_icon
Gets the icon for the notification, and returns a new reference
to the GIcon
.
ide_notification_withdraw
Withdraws the notification by removing it from the IdeObject
parent it
belongs to.
ide_notification_withdraw_in_seconds
Withdraws self
from it’s IdeObject
parent after seconds
have passed.
Properties
Ide.Notification:body
The “body” property is the main body of text for the notification. Not all notifications need this, but more complex notifications might.
Ide.Notification:has-progress
The “has-progress” property denotes the notification will receive
updates to the IdeNotification:progress
property.
Ide.Notification:icon
The “icon” property is an optional icon that may be shown next to the notification title and body under certain senarios.
Ide.Notification:icon-name
The “icon-name” property is a helper to make setting IdeNotification:icon
more convenient.
Ide.Notification:id
The “id” property is an optional identifier that can be used to locate the notification later.
Ide.Notification:priority
The “priority” property is used to sort the notification in order of importance when displaying to the user.
Ide.Notification:progress
The “progress” property is a value between 0.0 and 1.0 describing the progress of the operation for which the notification represents.
Ide.Notification:progress-is-imprecise
The “progress-is-imprecise” property indicates that the notification has progress, but it is imprecise.
Ide.Notification:title
The “title” property is the main text to show the user. It may be displayed more prominently such as in the titlebar.
Ide.Notification:urgent
If the notification is urgent. These notifications will be displayed with higher priority than those without the urgent property set.
Properties inherited from IdeObject (2)
Ide.Object:cancellable
The “cancellable” property is a GCancellable
that can be used by operations
that will be cancelled when the IdeObject::destroy
signal is emitted on self
.
Ide.Object:parent
The parent IdeObject
, if any.
Signals
Signals inherited from IdeObject (1)
IdeObject::destroy
The “destroy” signal is emitted when the object should destroy itself and cleanup any state that is no longer necessary. This happens when the object has been removed from the because it was requested to be destroyed, or because a parent object is being destroyed.
Signals inherited from GObject (1)
GObject::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.