Guido Günther
a75cdbbc59
theme-expander: Allow to set the theme to expand
2022-12-11 17:34:38 +01:00
Guido Günther
242519498a
Recursively load themes
...
Themes (other than the default theme) can specify a `parent-name` in the
json file. This theme will be used as a base for the theme. Events and
profiles of the children override those in the parents.
For this we move the lookup code into it's separate class and also add
tests.
Closes : #38
2022-12-11 17:34:38 +01:00
Guido Günther
34f8733b2b
build: Don't include main in lib
...
For that move the error quark to a separate file.
2022-12-08 10:05:47 +01:00
Guido Günther
ba91939c85
Add gmobile library
2022-12-08 10:05:47 +01:00
Guido Günther
4c75f42c7e
ci: Install git
...
Needed for the submodule
2022-12-08 10:05:47 +01:00
Guido Günther
ada82a0ed1
feedback-theme: Allow to get and set parent theme name
...
If set the parent theme's feedbackd and profiles should be merged into
this theme.
2022-12-08 10:05:47 +01:00
Guido Günther
e10b2cc150
feedback-theme: Allow to update theme
...
New profiles are added, existing profiles updated. This will
allow to merge themes.
2022-12-08 10:05:47 +01:00
Guido Günther
d7f97dca51
feedback-profile: Allow to update profiles
...
Allow to add feedbacks from a profile to another one
2022-12-08 10:05:47 +01:00
Guido Günther
29bbe38fb3
feedback-dummy: Add getter for duration
...
Useful in tests
2022-12-08 10:05:47 +01:00
Guido Günther
53677e29ef
feedback-profile: Document hash types
2022-12-08 10:05:47 +01:00
Guido Günther
82a8b91096
feedback-theme: Allow to set name
2022-12-08 10:05:47 +01:00
Guido Günther
1d21bfa0dc
feedback-theme: Use getter
...
Ensures we stay consistent with future changes
2022-12-08 10:05:47 +01:00
Guido Günther
e6f1c351e2
feedback-theme: Fix indentation
2022-12-08 10:05:47 +01:00
Guido Günther
c9404d871e
feedback-theme: No need for constructed
...
We can do all that in init
2022-12-08 10:05:47 +01:00
Guido Günther
96b6af3766
tests: Test feedback theme name
2022-12-08 10:05:47 +01:00
Guido Günther
3c124e8ecd
feedback-vibra: Fix indentation
2022-12-08 10:05:47 +01:00
Guido Günther
3e4f66993e
dir-locals: Simlify consistent JS indenting
2022-12-08 10:05:47 +01:00
Guido Gunther
7ab5af7269
Merge branch 'gi-docgen' into 'main'
...
Switch library documentation to gi-docgen
Closes #56
See merge request Librem5/feedbackd!94
2022-12-08 09:04:40 +00:00
Guido Günther
6acdb67b78
Include specifications in the documentation
...
Now that we can use markdown easily add them as they provide
help to the developer what events exist, etc.
2022-12-06 13:58:04 +01:00
Guido Günther
a150c2cbc3
Switch library documentation to gi-docgen
...
Switch from gtk-doc to gi-docgen for the library documentation and
adjust the source files accordingly.
We don't bother about the daemon doc headers as they're not built into
any docs atm.
Closes : #56
2022-12-06 12:44:54 +01:00
Guido Günther
7b7422f98e
build: Bump required meson version
2022-12-06 11:49:13 +01:00
Guido Günther
94880dbc0d
d/rules: Support nodoc build profile
2022-12-06 11:49:13 +01:00
Guido Günther
dfe2cdc665
d/control: Drop Breaks/Replaces on packages long gone
2022-12-06 11:21:04 +01:00
Guido Gunther
1e3175301c
Merge branch 'sid' into 'main'
...
Add a missing dependencies for the tests to pass on Debian sid
See merge request Librem5/feedbackd!92
2022-12-05 19:10:12 +00:00
Guido Günther
388cf959ce
d/changelog: Fix typos
...
Gbp-Dch: Ignore
2022-12-05 19:00:18 +00:00
Guido Günther
a6809dccbc
d/control: Add settings schema for the tests
2022-12-05 19:00:18 +00:00
Guido Gunther
c01ac64212
Merge branch 'update-ci' into 'main'
...
ci: Switch build to bookworm / byzantium
See merge request Librem5/feedbackd!91
2022-12-05 13:28:06 +00:00
Guido Günther
bbcb396df8
ci: Switch build to bookworm / byzantium
...
Use Debian bookworm for the tests and PureOS byzantium for the
package build
We use the arm64 builder as the amd64 one fails to find a shell in the
bookworm image.
2022-12-05 13:18:23 +00:00
Guido Gunther
50608ce5a2
Merge branch 'gbp.conf' into 'main'
...
d/gbp.conf: Update branch
See merge request Librem5/feedbackd!84
2022-12-03 14:34:30 +00:00
Guido Günther
fbfcce4470
d/gbp.conf: Update branch
...
Missed that one when switching to 'main'
2022-12-03 14:27:57 +00:00
Guido Gunther
59363bfed1
Merge branch 'example-wait' into 'main'
...
example: Wait a bit before ending
Closes #65
See merge request Librem5/feedbackd!85
2022-12-03 12:48:09 +00:00
Guido Günther
254bf944eb
example: Wait a bit before ending
...
feedbackd terminates feedback when clients disconnect from DBus so
we need to wait a bit before quitting as otherwise no feedback will
be played.
Closes : #65
2022-12-03 12:42:41 +00:00
Guido Gunther
3206976a4a
Merge branch 'calls-vs-feedbackd' into 'main'
...
run: Fix daemon name
See merge request Librem5/feedbackd!89
2022-12-03 12:35:30 +00:00
Guido Günther
b0dc0c64cc
run: Fix daemon name
...
Fixes: 99fc8c2 ("run: Make it easy to run under gdb and document usage")
2022-12-03 12:29:55 +00:00
Guido Gunther
d19e7b4f7d
Merge branch 'update_README' into 'main'
...
Update README.md
See merge request Librem5/feedbackd!88
2022-11-28 10:16:28 +00:00
Chris Vogel
f5391af6b9
README: Mention python example
2022-11-28 10:10:27 +00:00
Chris Vogel
16fc583ff8
README: Mention that DBus disconnect ends feedback
2022-11-28 10:10:27 +00:00
Guido Gunther
482eb05d1c
Merge branch 'ChriChri-main-patch-39100' into 'main'
...
Updated references to documentation
See merge request Librem5/feedbackd!86
2022-11-28 09:30:00 +00:00
Chris Vogel
64956ea4df
docs: Update references to documentation from branch master to branch main.
2022-11-28 10:22:26 +01:00
Guido Gunther
99c12e77d8
Merge branch 'rel' into 'main'
...
Document changes and release 0.0.1
See merge request Librem5/feedbackd!83
2022-11-11 10:02:17 +00:00
Guido Günther
193c0f8e57
Document changes and release 0.0.1
2022-11-11 10:54:55 +01:00
Guido Gunther
1b8d705802
Merge branch 'cleanups' into 'main'
...
More cleanups
See merge request Librem5/feedbackd!80
2022-11-11 09:50:28 +00:00
Guido Günther
2e29f5baf1
fbd: Fix indentation
2022-11-11 09:50:19 +00:00
Guido Günther
db13fc031d
manager: Use FEEDBACKD_UDEV_ATTR
...
It was introduced in
a5b4f99 ("feedbackd: Support visual feedback via LEDs")
2022-11-11 09:50:19 +00:00
Guido Gunther
68189de793
Merge branch 'misc_cleanups' into 'main'
...
tests/integration: Test that "feedback-ended" is propagated through LfbEvent
Closes #62
See merge request Librem5/feedbackd!82
2022-11-10 12:52:07 +00:00
Evangelos Ribeiro Tzaras
d739a33a5f
feedback-manager: Complete DBus call before emitting "feedback-ended"
...
See previous commit adding the test (that now passes) for the reasoning.
Fixes : #62
2022-11-09 11:54:46 +01:00
Evangelos Ribeiro Tzaras
72c7d3ba25
tests/integration: Test that "feedback-ended" is propagated through LfbEvent
...
When no feedbacks are available (either because the requested event does
not exist in the theme or because the system does not have required
capabilities, e.g. no vibration motor or LED) feedbackd will emit a
"feedback-ended" signal (with reason LFB_EVENT_STATE_REASON_NOT_FOUND)
on DBus _before_ completing the event triggering DBus call.
Since the DBus call was not completed yet, LfbEvent will not have
learned it's ID yet and therefore not emit it's own "feedback-ended"
GObject signal.
In this case the test will timeout since the main loop is never quit.
2022-11-09 11:54:44 +01:00
Evangelos Ribeiro Tzaras
efca781f7f
tests/integration: Fix whitespace
...
Remove all tabs in favour of spaces and align function arguments.
2022-11-09 11:54:06 +01:00
Evangelos Ribeiro Tzaras
15d33f4f85
tests/integration: Indicate that callback quits main loop
...
on_event_triggered() is renamed to on_event_triggered_quit()
as we will shortly introduce a variant that does not quit.
2022-11-09 11:50:10 +01:00
Guido Gunther
4d95249bdd
Merge branch 'misc_cleanups' into 'main'
...
Misc cleanup and ease running feedbackd under gdb
See merge request Librem5/feedbackd!81
2022-11-04 08:05:16 +00:00