Commit Graph

454 Commits

Author SHA1 Message Date
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
Marco Trevisan ea61ec4301 Merge branch 'snap-paths-support' into 'master'
notification: use snap namespace and prefix whent launched inside snap

See merge request GNOME/libnotify!5
2020-01-13 17:11:47 +00:00
Marco Trevisan b95d41283e Merge branch 'wip/jtojnar/drop-autotools' into 'master'
Drop Autotools

See merge request GNOME/libnotify!11
2020-01-13 17:10:31 +00:00
Jan Tojnar edfd97f4a9
ci: Do not pass default flags to meson 2020-01-13 17:12:00 +01: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
Iain Lane 2e8ed8add3 notification: Handle snap applications
When a non-relocatable application is packaged as a snap, its resources
will be visible under `${SNAP}`. We can discover these resources by
probing paths that are given to us and trying the same path under
`${SNAP}` if the probe fails.

Snap packages have desktop files namespaced by the snap name. This name
is available inside the snap environment as `${SNAP_NAME}`. Also probe
desktop files and try this form of mangled name if the referenced
desktop file is not found.
2019-08-14 15:43:43 +02:00
Jan Tojnar 55eb69247f
build: check supported linker args before build
MacOS linker does not support --version-script argument so we need
to only add it to ldflags when it is available.
2019-04-26 20:20:22 +02:00
Florian Müllner 44f9222212 Bump version to 0.7.8
Update NEWS.
2019-03-28 19:24:26 +01:00
Florian Müllner f5a845dd00 build: Don't use absolute path with 'subdir' keyword
Newer meson versions expect a relative path (to the includedir option)
there and reject passing an absolute path.

https://gitlab.gnome.org/GNOME/libnotify/merge_requests/8
2019-03-28 19:06:26 +01:00
Iain Lane d3277ac331 Merge branch 'notify-send-support-file-proto' into 'master'
notify-send: allow passing colon as hint value

See merge request GNOME/libnotify!4
2019-02-15 13:35:36 +00:00
Marco Trevisan (Treviño) 9862ab85e8
notify-send: allow passing colon as hint value
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
2019-02-15 12:54:39 +00:00
Abderrahim Kitouni 3f71a3b3ba meson.build: fix pkg-config generation
The code was previously using glib_dep.version() as a version for gio which
generates an invalid version like "gio-2.0 2.59.1" in the pkg-config file.
2019-02-01 14:21:14 +01:00
Marco Trevisan b7351a39fb Merge branch 'wip/3v1n0/meson' into 'master'
Build with meson and add CI

See merge request GNOME/libnotify!3
2019-01-31 17:15:27 +00: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
Emmanuele Bassi 43aac613f1 Conditionall call g_type_init() after a version check
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.
2017-07-17 10:16:06 +01:00
Emmanuele Bassi 46e8b1cfad build: Update the list of headers in srcdir
The generated notify-features.h header lives in builddir, which means it
does not exist in srcdir, where glib-mkenums will look. It also contains
pre-processor symbols only, so it's not really useful.

As we removed it from the list of headers to be scanned by the
introspection parser, we also need to update the files rules for that.
2017-07-17 10:11:48 +01:00
Ting-Wei Lan 5398ecfe3f notify-send: Call setlocale in main function
It is required to correctly show translated messages on some locales.

https://bugzilla.gnome.org/show_bug.cgi?id=760438
2016-10-22 11:32:36 +08:00
Cosimo Cecchi c954cabaad release: prepare for 0.7.7 2016-10-13 15:44:18 -07:00
Quentin Glidic 6b03c47e04 build: Use ${PKG_CONFIG} instead of pkg-config
Some use cases (e.g. cross-compiling) require a prefixed pkg-config

https://bugzilla.gnome.org/show_bug.cgi?id=758322

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-06-14 16:07:31 +02:00
Quentin Glidic da7a6a229b build: Allow not to build tests
https://bugzilla.gnome.org/show_bug.cgi?id=634790

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-06-14 16:07:31 +02:00
Andre Klapper 2f2c5649ef doap: add <programming-language> 2014-08-01 23:32:16 +02:00
Olav Vitters dafa138886 doap category core 2014-07-30 20:31:31 +02:00
Evan Nemerson da49c8c599 NotifyNotification: fix set_hint_byte_array value annotation
https://bugzilla.gnome.org/show_bug.cgi?id=667904
2014-04-01 21:19:01 +02:00
Evan Nemerson 5a486c5490 Include C header information and exported packages in GIR
https://bugzilla.gnome.org/show_bug.cgi?id=667904
2014-04-01 21:02:56 +02:00
Ryan Lortie fc6cba771d Remove INSTALL from version control
This is getting updated by autoregen causing jhbuild to mistakenly
believe that the build is dirty.
2014-02-25 15:21:50 -05:00
Matthias Clasen f9355ca357 0.7.6 2013-09-02 21:47:23 -04:00
Giovanni Campagna 2b4ab4d22f NotifyNotification: fix annotation for add_action()
Using GFreeFunc instead of GDestroyNotify was a mistake, but
(scope async) is even a bigger mistake (one that can crash apps,
if an action is invoked multiple times)

https://bugzilla.gnome.org/show_bug.cgi?id=702390
2013-09-02 21:42:37 -04:00
Matthias Clasen 9128042026 Clarify docs of notify_notification_set_timeout
In response to
https://bugzilla.gnome.org/show_bug.cgi?id=701645
2013-06-07 20:28:10 -04:00
Matthias Clasen 6982957661 Bump version 2012-03-26 22:01:28 -04:00
Matthias Clasen 20721a3351 0.7.5 2012-03-26 22:00:54 -04:00
Colin Walters 5e3654b70b build: Also fix introspection when srcdir != builddir 2012-01-16 18:47:31 -05:00
Colin Walters b6e1f7f1a2 build: Another srcdir != builddir fix 2012-01-16 18:44:49 -05:00
Colin Walters bc612b9fc8 build: Fix srcdir != builddir 2012-01-16 18:42:58 -05:00
Jasper St. Pierre b873c61ecc notify-send: Add ability to set app name 2011-10-12 17:31:29 -04: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
Matthias Clasen f6638ebfb7 Post-release version bump 2011-08-27 18:56:22 -04:00
Matthias Clasen edfabdf078 0.7.4 2011-08-27 18:55:36 -04:00
William Jon McCann e8ecbfb036 Add simple test for notification removal 2011-06-16 14:46:52 -04:00
Javier Jardón 11d46bf9fd configure.ac: AC_SUBST "pkg_modules" as Its needed to generate the .pc file
This fixes commit fb7790f5b4
2011-05-04 07:04:26 +01:00
Javier Jardón fb7790f5b4 build: Update autotools configuration
Replace deprecated autoconf macros and use the new libtool syntax
2011-05-03 13:47:36 -04:00
Craig Keogh a5ad7b6063 Honor aclocal flags (GNOME bug 641461) 2011-05-03 13:43:55 -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
Matthias Clasen d12145208a Update 2011-05-02 23:40:13 -04:00
Richard Hughes 1c40dfaff4 Add notify_notification_set_app_name() to set the application name for the notification
When a daemon like gnome-settings-daemon has multiple plugins, if a plugin uses
notify_set_app_name() then subsequent notifications get the wrong
'Application name' in the gnome-shell persistent message tray.

This new function is per-notification and is thus allows us to set a custom
application name without overwriting the application name stored by notify_init().

https://bugzilla.gnome.org/show_bug.cgi?id=648947
2011-05-02 23:36:52 -04:00