25 Commits

Author SHA1 Message Date
Beau Hastings
bd6abfcc5d
Add icon-static server capability
Dunst supports displaying the first frame of an icon, thus it should
announce that capability.
2021-05-14 16:54:51 +08:00
Benedikt Heine
55f4971a92 Add DBus interface to control dunst 2020-04-10 10:47:12 +02:00
Jonas Berlin
ad5d20bd6a Add tests for icon scaling math & loading 2019-12-17 22:40:36 +02:00
Benedikt Heine
52a8489043 Don't overflow when passing INT_MAX on DBus wire 2019-08-09 14:41:37 +02:00
Benedikt Heine
1e82c761c9 Add support for desktop-entry hints 2019-01-25 07:59:01 +01:00
Benedikt Heine
6f8b53c4e8 Compare raw icons by their checksums
Currently, we just skipped the notification comparison, if the
notification had a raw icon attached. This is a bit counterintuitive.

Calculating a checksum of the raw icon's data is the solution.

For that we cache the pixel buffer and introduce a field, which saves
the current icon's id. The icon_id may be a path or a hash.
So you can compare two notifications by their icon_id field regardless
of their icon type by their icon_id field.
2019-01-11 13:10:37 +01:00
Benedikt Heine
cd09d5a88e Cache GdkPixbuf in notification structure 2019-01-07 17:56:00 +01:00
Benedikt Heine
088907488c Rename icon field to iconname 2019-01-07 17:56:00 +01:00
Benedikt Heine
d1700dc3eb Test raw icon assembly in DBus 2019-01-03 18:39:22 +01:00
Benedikt Heine
330faa3e5a Add ability to test ActionInvoked signal 2018-12-30 17:07:27 +01:00
Benedikt Heine
c236ef7751 Always use an odd number of actions during testing 2018-12-30 17:07:04 +01:00
Benedikt Heine
62a83e183e Test urgency hints in DBus 2018-12-30 17:07:04 +01:00
Benedikt Heine
3c5b15d630 Test category hint in DBus 2018-12-30 17:07:04 +01:00
Benedikt Heine
416da59e9e Test icon hints in DBus 2018-12-30 17:07:04 +01:00
Benedikt Heine
01784d5514 Test progress hints in DBus 2018-12-30 17:07:04 +01:00
Benedikt Heine
5e616516df Test transient hints in DBus 2018-12-30 17:07:01 +01:00
Benedikt Heine
57a6baae85 Test FDN Daemon info 2018-12-29 14:38:59 +01:00
Benedikt Heine
fb483347ed Test close signals 2018-12-29 14:38:59 +01:00
Benedikt Heine
ae58207f9b Use binary search for functions 2018-12-29 14:38:58 +01:00
Benedikt Heine
0d82b19987 Add test for empty notification 2018-12-29 14:31:31 +01:00
Benedikt Heine
caffb0b10c Add tests for notification color hints 2018-12-29 14:31:31 +01:00
Benedikt Heine
b10bb292c6 Simplify DBus notification assembly 2018-12-29 14:31:31 +01:00
Benedikt Heine
a8faea725d wait longer for DBus in tests
While running under valgrind, it may take over 30 cycles in the loop to
wait for a running GTestDBus instance. So we have to increase the
waiting time.

Waiting a whole second will change the signal/noise ratio and will only
fail, if there's really a problem with the GTestDBus usage.

And as we're sleeping 500us in every loop, we usually get a super fast
response, too.
2018-12-29 14:31:31 +01:00
Benedikt Heine
314d982bf4 Add capability tests for DBus 2018-12-29 14:31:31 +01:00
Benedikt Heine
3598aaf3e2 Add initial dbus tests 2018-12-29 14:31:29 +01:00