Guido Günther
65fa915184
treewide: Drop superfluous '()' after functions in doc strings
...
Otherwise we have that doubled in the docs
2023-08-29 12:14:11 +02:00
Guido Günther
fd28bfd78e
event: Fix doc link
2023-08-29 12:14:11 +02:00
Guido Günther
b3758dee3d
Update NEWS
2023-04-24 10:54:44 +02:00
Guido Gunther
eadcfb16c3
Merge branch 'app-id-set' into 'main'
...
Add API to set app_id
See merge request Librem5/feedbackd!111
2023-04-24 08:41:45 +00:00
Guido Günther
8d4b1a09ab
Document changes and release 0.2.0
2023-04-17 13:33:08 +02:00
Guido Günther
08ee0daa12
debian/symbols: Update with new API
2023-04-17 13:32:21 +02:00
Guido Günther
f9aae0b689
build: Bump version to 0.2.0
...
We have a slight api change
2023-04-17 13:32:21 +02:00
Guido Günther
2de190fb09
lfb-event: Add getter and setter for app-id
...
For applications this is figured out automatically but notification
daemons and portal implementations might want to override it to have the
per-app feedback profile picked up automatically.
2023-04-17 13:32:21 +02:00
Guido Günther
a58b47e1eb
tests: Get properties all at once
2023-04-17 12:21:06 +02:00
Guido Günther
1a5cd090de
lfb-event: Avoid allocation when getting profile
...
We can return the const *. This makes it consistent with other getters.
This is an API change we didn't find any users and the API is declared
unstable.
2023-04-17 12:21:06 +02:00
Guido Günther
31a592e18e
debian/symbols: Bump all symbol dependencies to 0.1.1
...
We want to make sure apps run against a recent version even on
partial upgrades.
2023-04-17 12:21:06 +02:00
Guido Gunther
ce10466203
Merge branch 'rel-0.1.1' into 'main'
...
Document changes and release 0.1.1
See merge request Librem5/feedbackd!110
2023-03-29 15:31:48 +00:00
Guido Günther
40e1c58de1
Document changes and release 0.1.1
2023-03-23 10:38:30 +01:00
Guido Gunther
1dbad7e536
Merge branch 'fixes' into 'main'
...
Fix crash exposed by glib 2.76
Closes #69
See merge request Librem5/feedbackd!109
2023-03-17 16:47:22 +00:00
Guido Günther
f9c65381db
tests/profile: Don't leak json node
2023-03-13 15:26:20 +01:00
Guido Günther
3d7c4b376a
feedback-theme: Don't leak parent name
2023-03-13 15:26:18 +01:00
Guido Günther
7becab3346
feedback-theme: Don't leak json array when serializing profile
...
json_array_add_element doesn't transfer ownership.
2023-03-13 15:26:15 +01:00
Guido Günther
5206c3aae5
feedback-profile: Don't leak json array when serializing profile
...
json_array_add_element doesn't transfer ownership
2023-03-13 15:26:10 +01:00
Guido Günther
1933a23172
tests: Don't leak profiles and test that
...
We finalize the theme first so the last reference is dropped when
finalizing the profiles.
2023-03-13 15:26:07 +01:00
Guido Günther
460985cfa0
tests: Don't leak json string
2023-03-13 15:26:04 +01:00
Guido Günther
03b0f4c2aa
fbd-event: Make sure we iterate the list safely
...
When all feedbacks are done the event signals "feedbacks-ended" which
lets the manager dispose the feedback. When all feedbacks end instantly
and synchronously (as is the case with the dummy feedback) this triggers
the disposal of the event within the loop leading to a crash.
Make sure the object doesn't go away be referencing it during the loop
iteration.
We didn't see this before as glib's slice allocator for lists papered
over this for us.
Closes: https://source.puri.sm/Librem5/feedbackd/-/issues/69
2023-03-13 15:25:41 +01:00
Guido Günther
64076e5ad0
fbd-event: Simplify
...
Gbp-Dch: Ignore
2023-03-13 15:25:37 +01:00
Guido Günther
847c21d78e
build: Avoid meson deprecation warning
2023-03-13 15:25:31 +01:00
Guido Gunther
2db8a72ef9
Merge branch 'rel-0.1.0' into 'main'
...
Release 0.1.0
See merge request Librem5/feedbackd!108
2023-02-27 16:20:02 +00:00
Guido Günther
f50db727a1
Document changes and release 0.1.0
2023-02-25 14:07:09 +01:00
Guido Günther
b76e7f775f
d/gbp.conf: Be less strict when matching the meson version field
2023-02-25 14:04:09 +01:00
Guido Gunther
397d508381
Merge branch 'led-class' into 'main'
...
leds: Separate single color from multicolor leds
See merge request Librem5/feedbackd!103
2023-02-10 15:26:25 +00:00
Guido Günther
995d21b587
fbd-dev-led: Move multicolor handling to separate class
...
Everything related to multicolor moves into the new class and we add the
necessary getters and setters so derived classes can access the parent
classes attributes where needed.
2023-02-10 15:15:12 +00:00
Guido Günther
ca712e9a32
fbd-dev-led: Add class methods so derived classes can override functionality
2023-02-10 15:15:12 +00:00
Guido Günther
ac0516329c
fbd-dev-led: Use GInitable
...
Use default GObject patterns instead of stuffing things into the
fbd_dev_led_new () so derived classes can override it.
2023-02-10 15:15:12 +00:00
Guido Günther
f7ec08497e
fbd-dev-led: Turn into a GObject
...
This is just the minimal changes to switch to a derivable GObject
2023-02-10 15:15:12 +00:00
Guido Günther
f17ca72c1b
fbd-dev-led: Make structure opaque
...
This will allow us to turn it into a GObject
2023-02-10 15:15:12 +00:00
Guido Günther
5d8b2e5fe4
fbd-dev-led: Allow to lookup color
...
This allows us to make the led structure into an opaque in
the next commit
2023-02-10 15:15:12 +00:00
Guido Günther
8ad1c43ff1
fbd-dev-leds: Move pattern trigger into fbd-dev-led
2023-02-10 15:15:12 +00:00
Guido Günther
fd852c6f69
fbd-dev-leds: Move led creation into fbd-dev-led
...
This will allow us to separate the different led types
2023-02-10 15:15:12 +00:00
Guido Günther
5fc0372b45
Move LED device to separate file
...
We separate out the led as different LED types have different
ways to set patterns, etc
2023-02-10 15:15:12 +00:00
Guido Günther
253d178cfc
fbd-dev-leds: Use gi-docgen compatible format
...
We don't document the server classes via gi-docgen atm but
as we use it for the lib update classes we touch.
2023-02-10 15:15:12 +00:00
Guido Günther
1013974958
theme: Fix some indentation
2023-02-10 15:15:12 +00:00
Guido Gunther
bc256284ee
Merge branch 'udev-module-load' into 'main'
...
udev: load the required kernel modules
See merge request Librem5/feedbackd!106
2023-02-09 13:25:24 +00:00
Guido Günther
4ea946b059
debian: Drop obsolete conf file
...
As this is now handled via udev's kmod builtin we can drop this.
2023-02-09 13:56:08 +01:00
Dylan Van Assche
82c07e28f2
udev: load the required kernel modules
...
Loading the required kernel modules such as ledtrig-pattern via
/etc/modules-load.d may introduce a race condition on some systems such
as non-systemd based distros. Load the kernel modules using the builtin
'kmod load' udev command instead.
2023-02-08 20:46:00 +01:00
Guido Gunther
25913a6aad
Merge branch 'rel-0.0.3' into 'main'
...
Document changes and release 0.0.3
See merge request Librem5/feedbackd!105
2023-02-02 12:59:54 +00:00
Guido Günther
45bc7bc417
Document changes and release 0.0.3
2023-02-02 13:49:09 +01:00
Guido Gunther
a8bba744b1
Merge branch 'gmobile-0.0.1' into 'main'
...
Update to gmobile 0.0.1
See merge request Librem5/feedbackd!104
2023-02-02 12:47:58 +00:00
Guido Günther
4822be0f7c
Update to gmobile 0.0.1
...
Adjust to the one API change. We do it all in one commit to keep
bisectability. We use a slightly newer commit than 0.0.1 to include
build fixes for older glib (as required on PureOS Byzantium).
2023-02-02 13:04:48 +01:00
Guido Günther
769fda1c68
ci: Update submodule strategy
2023-02-02 13:04:48 +01:00
Guido Gunther
3a09ea5e56
Merge branch 'doc-links' into 'main'
...
Fix some broken spec links
See merge request Librem5/feedbackd!102
2023-01-06 15:17:27 +00:00
Guido Günther
88cc9a2d54
libfeedback: Fix link to specs
...
Since we now have them as part of the API docs we can avoid any
remote URLs
2023-01-06 15:04:29 +00:00
Guido Günther
ae85ac15d5
doc: Fix link to spec in manpage
2023-01-06 15:04:29 +00:00
Guido Günther
d7eed4fd52
lfb-event: Fix docstring
...
This allows gi-docgen to pick it up
2023-01-06 15:04:29 +00:00