| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
We're using error variable multiple times, and this may lead to problems
when trying to set it again. So let's just clear once it's used.
|
| |
|
|
|
|
|
| |
The activated action name is written to stdout and the notification is closed
when a valid action has been selected.
|
|
|
|
|
| |
If an expiration timeout is set, the notification is not waited longer
than such time.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Support printing and overriding notification ID, so that it's possible
to replace a notification that is currently showing with an updated
content.
Based on patch as provided by Paul Collins in the following bug
report:
https://bugs.launchpad.net/ubuntu/+source/libnotify/+bug/257135/comments/8
Co-authored-by: Marco Trevisan (Treviño) <mail@3v1n0.net>
Fixes #19
|
|
|
|
|
|
|
|
|
| |
Right now notify-send will quietly return a successful exit status
even if showing the notification fails.
This commit changes the behavior to instead fail on failure.
https://gitlab.gnome.org/GNOME/libnotify/-/merge_requests/13
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
While some hints like image-path or sound-file supports parameters using the
file:// protocol, it's impossible to pass such hints to notify-send, because
it splits the passed argument so that it can have an unlimited number of colons,
while only 3 should be there (as per TYPE:NAME:VALUE format).
So, make `g_strsplit` to accept only 3 tokens as maximum, while pass the
remaining parameters all-together.
So now it's possible to do
notify-send -h string:image-path:file:///usr/share/icons/foo.png
|
| |
|
|
|
|
|
| |
There's no need to call g_type_init() since GLib 2.36, so let's hide it
when building against newer versions of GLib.
|
|
|
|
|
|
| |
It is required to correctly show translated messages on some locales.
https://bugzilla.gnome.org/show_bug.cgi?id=760438
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=613999
|
| |
|
| |
|
| |
|
|
|
|
| |
to allow reuse in more projects. Fixes bug #124.
|
| |
|
|
|
|
| |
-v, --version, -h, and --hint options, and to rename -T, --type to -c, --category. This also fixes assertions when calling notify-send "". This closes ticket #41.
|
|
|
|
|
|
|
| |
milliseconds, not seconds. This fixes bug #28.
- Fixed the short flag for --type to be -T. This fixes bug #18.
|
| |
|
|
|
|
| |
one show function, and require that the user unref. It also simplifies the code quite a bit.
|
|
|
|
|
|
|
| |
- Re-order the arguments as per the spec.
- Change NOTIFY_TIMEOUT_* to NOTIFY_EXPIRES_*.
- Update the spec to 0.9.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* tests/Makefile.am, tools/Makefile.am: patch from Rodney
Dawes <dobey at novell.com> fixing make distcheck
* tools/notify-send.c: use show_and_forget
|
|
|