Skip to content

Commit

Permalink
notification: Ensure all properties for specs v2 are in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jsparber committed Jul 15, 2024
1 parent c9397ca commit 5a84acf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libportal/notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,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 [[email protected]]
* for [email protected], [email protected] and [email protected])
* - sound `v`: a serialized sound
Expand All @@ -178,6 +179,9 @@ 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.
* - category `s`: A category for this notification. [See the spec for supported categories](https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Notification.html#org-freedesktop-portal-notification-addnotification)
*
* The serialized sound consists of a `s` or `sv`:
* - default : Play the default sound for the notification.
Expand All @@ -189,9 +193,10 @@ call_done (GObject *source,
*
* Each serialized button is a dictionary with the following supported keys:
*
* - label `s`: user-visible lable for the button. Mandatory
* - label `s`: user-visible lable for the button. Mandatory without a purpose.
* - 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
*
Expand Down

0 comments on commit 5a84acf

Please sign in to comment.