Commit Graph

70 Commits

Author SHA1 Message Date
Marco Trevisan (Treviño) 9e9cb423b9 Notification: Add NotifyClosedReason enum to define closed reasons
We don't change the formal type of notify_notification_get_closed_reason
but it's safe enough to compare the two returned values.
2022-06-07 03:18:38 +02:00
Marco Trevisan (Treviño) 997115b459 docs/notify-send: Add --transient option to manpage 2022-04-27 21:25:10 +02:00
Marco Trevisan (Treviño) 02f2f91c3d notify-send: Support passing any hint value, by parsing variant strings 2022-04-27 20:45:06 +02:00
Marco Trevisan (Treviño) d6f4734adf notify-send: Add support for boolean hints
Boolean hints are used for some common parameters such as "transient".

Original bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636343
2022-04-27 20:33:40 +02:00
Marco Trevisan (Treviño) d07785959c notification: Add support for getting actions activation token
Notification actions can now be activated with an activation token
containing platform data. So update the notification-spec to include
latest version of the specification, and expose the activation token
during an action activation.

Not to change the API, by modifying the type of NotifyActionCallback
it's just better to provide a function to fetch the activation token
during activation only, so that this can be retro-compatible.

Reference: https://gitlab.freedesktop.org/xdg/xdg-specs/-/commit/b9a4700
2022-04-27 18:02:20 +02:00
Ben Blain e05030875e docs/notify-send: Add missing --app-name description to manual 2022-04-25 22:23:40 +02:00
Ben Blain 6c707d2dfd notify-send: Add support for notification actions and responses
The activated action name is written to stdout and the notification is closed
when a valid action has been selected.
2022-04-25 22:23:37 +02:00
Ben Blain a396dd9af9 notify-send: Add option to wait until notification has been closed
If an expiration timeout is set, the notification is not waited longer
than such time.
2022-04-25 22:15:50 +02:00
Matthias Sweertvaegher 00a7e74774 docs/notify-send: Add print/replace-id arguments to man page 2022-04-25 19:43:12 +02:00
David King 7f31e29e62 docs: Use consistent IDs in spec build
This avoids differences between IDs for separate builds of the
specification.
2022-04-21 14:37:58 +02:00
Marco Trevisan 05112e2a5b Merge branch 'update_documenation' into 'master'
Update documenation (generated man file) to express that plasma notification...

See merge request GNOME/libnotify!14
2021-04-06 11:59:19 +00:00
Thorsten Wißmann dfaa76109e notify-send: Support commas in icon filenames
Do not cut off an icon filename (passed to -i) at the first comma
character. The original motivation probably was to support a list of
icon names in -i separated by comma. However, this has never been
implemented and the help text for -i also only mentions "an icon".

Hence, no functionality is lost by this change. In contrast, -i now
supports commas in icon filepaths.

https://gitlab.gnome.org/GNOME/libnotify/-/issues/16
2021-03-26 16:52:49 +01:00
Boris Shtrasman 50cf335a34 Take Marco Trevisan text enhencment 2020-09-17 20:52:37 +03:00
Boris Shtrasman 4e2971be0c enhence text 2020-09-01 16:03:03 +03:00
Boris Shtrasman d9ba514b15 Update documenation (generated man file) to express that plasma notification system will ignore timeout value when level is in critical mode 2020-08-31 21:56:54 +03:00
Marco Trevisan d30f73d628 Merge branch 'wip/jtojnar/manpage' into 'master'
Add notify-send manpage

Closes #4

See merge request GNOME/libnotify!6
2020-01-13 17:15:51 +00:00
Jan Tojnar a599a04de6
Drop Autotools 2020-01-13 17:09:17 +01:00
Jan Tojnar 162d195869
Add notify-send manpage
Taken from Debian, converted to Docbook and fixed some issues.

Closes: https://gitlab.gnome.org/GNOME/libnotify/issues/4
2020-01-13 16:41:31 +01:00
Marco Trevisan 593f260722 Build with meson and add CI 2019-01-31 17:15:27 +00:00
Jan Tojnar a1bedfa65e
docs: Fix spec build
Correct DTD and add config.xsl to EXTRA_DIST
2019-01-26 10:44:22 +01:00
Javier Jardón 6a63ae0e8a libnotify-sections.txt: Add some missing api 2011-10-09 13:16:07 -04:00
Javier Jardón 2fe1748295 notification.h: Add deprecation guards 2011-10-09 13:08:53 -04:00
Javier Jardón 34aa27f600 libnotify-docs.sgml: Add list of all and deprecated symbols 2011-10-09 12:56:25 -04:00
Matthias Clasen bd385da02a More D-Bus type clarifications
Only use conventional names where they uniquely identify
the wire type, and type signatures elsewhere. This replaces
DICT by a{sv}
ARRAY by as
STRING_ARRAY by as
2011-09-05 08:55:08 -04:00
Matthias Clasen 3a60c433fd Spec: Clarify types of hints
Most type names were clear, but 'int' could map to different
dbus types. Use conventional D-Bus type names througout.
2011-09-05 08:31:58 -04:00
Colin Walters 52cb20bb53 spec: Explicitly document components of on image data
Since we're just passing it ultimately to gdk_pixbuf_new_from_data in
the server, we really should be documenting the restrictions here, such
as bits_per_sample always being 8.

https://bugzilla.gnome.org/show_bug.cgi?id=647672
2011-05-03 13:41:43 -04:00
William Jon McCann 9fae742d43 Mark image_path as deprecated 2011-01-17 17:02:27 -05:00
William Jon McCann b20752a2e5 Use - instead of _ in hint names consistently 2011-01-17 16:57:31 -05:00
Javier Jardón 7d64b2b514 docs: Update libnotify-sections.txt
https://bugzilla.gnome.org/show_bug.cgi?id=634266
2010-11-14 10:52:47 -05:00
Javier Jardón 3acf1c14e0 docs: Do not generate template files
As we use inline comments now

https://bugzilla.gnome.org/show_bug.cgi?id=634266
2010-11-14 10:52:45 -05:00
Javier Jardón 560abf5c97 docs: Move documentation to inline comments: notify
https://bugzilla.gnome.org/show_bug.cgi?id=634266
2010-11-14 10:52:42 -05:00
Javier Jardón abb884af73 docs: Move documentation to inline comments: notification
https://bugzilla.gnome.org/show_bug.cgi?id=634266
2010-11-14 10:52:38 -05:00
William Jon McCann 1fdab39d65 [spec] Add action-icons hint and server capability
https://bugzilla.gnome.org/show_bug.cgi?id=633510
2010-10-29 18:17:11 -04:00
William Jon McCann 4fa4cedd2e Remove some outdated text in abstract 2010-10-28 14:33:36 -04:00
William Jon McCann dfcf661b80 Add spec versions to transient and resident hints 2010-10-28 14:29:15 -04:00
William Jon McCann a0bab8e3d0 Bump spec version and update authors 2010-10-28 14:26:33 -04:00
William Jon McCann 31dd7c3f7c Add transient hint
https://bugzilla.gnome.org/show_bug.cgi?id=633312
2010-10-28 14:21:59 -04:00
William Jon McCann 015131721c Add persistence server capability 2010-10-28 14:19:32 -04:00
William Jon McCann 487297e072 Add resident hint to the spec.
https://bugzilla.gnome.org/show_bug.cgi?id=633313
2010-10-28 14:14:09 -04:00
Christian Persch f63e8ab8b1 Port to gdbus
Bug #622891.
2010-10-12 15:57:33 +02:00
William Jon McCann cb6f92ce5b Port to gtk3 for the tests 2010-10-09 01:26:38 -04:00
William Jon McCann 27e05d0f95 Remove the ability to attach notifications to widgets or positions 2010-10-08 22:47:06 -04:00
William Jon McCann 96dc90a8db Doc template changes bs 2010-06-24 04:30:21 -04:00
William Jon McCann 3a7e52c9b9 [spec] Add html output 2010-01-31 16:45:01 -05:00
Aurélien Gâteau 4497c99f85 [spec] Update for version 1.1 2010-01-31 16:17:24 -05:00
A. Walton b6c250fcb9 [spec] Clarify image_data/path precidence
Image Data should be considered before Image Path if both are
present (which they shouldn't be, but isn't a hard error).
2010-01-31 15:43:10 -05:00
A. Walton b42a41d5ec [spec] Add sound-name hint 2010-01-31 15:36:28 -05:00
A. Walton 5a08fb1ab7 [spec] Deprecate icon_data in favor of image_data and image_path hints
As discussed on the XDG list.
http://lists.freedesktop.org/archives/xdg/2009-June/010524.html
http://lists.freedesktop.org/archives/xdg/2009-June/010568.html
2010-01-31 15:36:28 -05:00
William Jon McCann 9bc1f5d983 [spec] Fix typo in desktop-entry 2010-01-31 15:36:28 -05:00
William Jon McCann 25b3a73e3d [spec] Fix icon_data typo in 1.0 version 2010-01-31 15:36:14 -05:00