WebKitNotification

WebKitNotification — Object used to hold information about a notification that should be shown to the user.

Functions

Properties

gchar * body Read
guint64 id Read
gchar * tag Read
gchar * title Read

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── WebKitNotification

Description

Functions

webkit_notification_get_id ()

guint64
webkit_notification_get_id (WebKitNotification *notification);

Obtains the unique id for the notification.

Parameters

notification

a WebKitNotification

 

Returns

the unique id for the notification

Since: 2.8


webkit_notification_get_title ()

const gchar *
webkit_notification_get_title (WebKitNotification *notification);

Obtains the title for the notification.

Parameters

notification

a WebKitNotification

 

Returns

the title for the notification

Since: 2.8


webkit_notification_get_body ()

const gchar *
webkit_notification_get_body (WebKitNotification *notification);

Obtains the body for the notification.

Parameters

notification

a WebKitNotification

 

Returns

the body for the notification

Since: 2.8


webkit_notification_get_tag ()

const gchar *
webkit_notification_get_tag (WebKitNotification *notification);

Obtains the tag identifier for the notification.

Parameters

notification

a WebKitNotification

 

Returns

the tag for the notification.

[allow-none]

Since: 2.16


webkit_notification_close ()

void
webkit_notification_close (WebKitNotification *notification);

Closes the notification.

Parameters

notification

a WebKitNotification

 

Since: 2.8


webkit_notification_clicked ()

void
webkit_notification_clicked (WebKitNotification *notification);

Tells WebKit the notification has been clicked. This will emit the “clicked” signal.

Parameters

notification

a WebKitNotification

 

Since: 2.12

Types and Values

struct WebKitNotification

struct WebKitNotification;

Property Details

The “body” property

  “body”                     gchar *

The body for the notification.

Flags: Read

Default value: NULL

Since: 2.8


The “id” property

  “id”                       guint64

The unique id for the notification.

Flags: Read

Default value: 0

Since: 2.8


The “tag” property

  “tag”                      gchar *

The tag identifier for the notification.

Flags: Read

Default value: NULL

Since: 2.16


The “title” property

  “title”                    gchar *

The title for the notification.

Flags: Read

Default value: NULL

Since: 2.8

Signal Details

The “clicked” signal

void
user_function (WebKitNotification *notification,
               gpointer            user_data)

Emitted when a notification has been clicked. See webkit_notification_clicked().

Parameters

notification

the WebKitNotification on which the signal is emitted

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 2.12


The “closed” signal

void
user_function (WebKitNotification *notification,
               gpointer            user_data)

Emitted when a notification has been withdrawn.

The default handler will close the notification using libnotify, if built with support for it.

Parameters

notification

the WebKitNotification on which the signal is emitted

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 2.8