Skip to content

Commit

Permalink
notification: Add properties for specs v2 to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jsparber committed Apr 11, 2024
1 parent 4cfe7c0 commit 57d6202
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions libportal/notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ call_done (GObject *source,
*
* - title `s`: a user-visible string to display as title
* - body `s`: a user-visible string to display as body
* - markup-body `s`: a user-visible string to display as body with support for markup
* - icon `v`: a serialized icon (in the format produced by [method@Gio.Icon.serialize]
* for class@Gio.ThemedIcon, class@Gio.FileIcon and class@Gio.BytesIcon)
* - sound `v`: a serialized sound
Expand All @@ -173,6 +174,10 @@ call_done (GObject *source,
* - default-action-target `v`: target parameter to send along when
* activating the default action.
* - buttons `aa{sv}`: array of serialized buttons
* - desktop-file-id `s`: A desktop file id containing the .desktop suffix.
* - display-hint `as`: An array of display hints.
* - content-type `s`: A content type.
* - actions `aa{sv}`: array of serialized actions.
*
* The serialized sound consists of a `s` or `sv`:
* - default : Play the default sound for the notification.
Expand All @@ -185,9 +190,17 @@ call_done (GObject *source,
* - label `s`: user-visible lable for the button. Mandatory
* - action `s`: name of an action that will be activated when
* the user clicks on the button. Mandatory
* - purpose `s`: information used by the server to style the button specially.
* - target `v`: target parameter to send along when activating
* the button
*
* Each serialized action is a dictionary with the following supported keys:
*
* - action `s`: name of an action that will be activated. Mandatory
* - purpose `s`: the purpose for what this action is called.
* - target `v`: target parameter to send along when activating
* the action contained in a response vardict as target `v`.
*
* Actions with a prefix of "app." are assumed to be exported by the
* application and will be activated via the org.freedesktop.Application
* interface, others are activated by emitting the
Expand Down

0 comments on commit 57d6202

Please sign in to comment.