Commit Graph
267 Commits
Author SHA1 Message Date
Guido Günther b09f37b065 event-naming-spec: Separate application and system events
Make it obvious which events are meant to be used by "normal" GUI
applications in contrast to system components like desktop shells or
components monitoring the battery, etc.

This was prompted by
https://github.com/flatpak/xdg-desktop-portal/issues/929
2023-01-02 11:39:27 +01:00
Guido Gunther aa5e5e4045 Merge branch 'compile-fix' into 'main'
build: Add dbus sources to the lib dependency

See merge request Librem5/feedbackd!99
2022-12-15 18:29:26 +00:00
Guido Günther b10e699efa build: Add dbus sources to the lib dependency
Otherwise we might fail to generate it for the executables
2022-12-15 17:54:08 +01:00
Guido Gunther fca952f813 Merge branch 'rel-0.0.2' into 'main'
Release 0.0.2

See merge request Librem5/feedbackd!98
2022-12-15 15:25:21 +00:00
Guido Günther 42e9f38cc5 Add NEWS file 2022-12-15 11:52:25 +01:00
Guido Günther 089769bbcb d/gbp.conf: Bump meson version automatically 2022-12-15 11:29:03 +01:00
Guido Günther 0e98a51a5d Document changes and release 0.0.2 2022-12-15 11:29:03 +01:00
Guido Gunther 2365c0e692 Merge branch 'pkg-fixes' into 'main'
Fix nodoc and make nocheck build less

See merge request Librem5/feedbackd!97
2022-12-15 10:24:35 +00:00
Guido Günther c26eaa88b7 d/rules: Don't build tests with nocheck 2022-12-15 10:11:05 +00:00
Guido Günther f2d02050d1 d/rules: Fix nodoc build profile usage
We were checking for the wrong option
2022-12-15 10:11:05 +00:00
Guido Gunther 2514b50b32 Merge branch 'comment_example' into 'main'
extend comment about GI_TYPELIB_PATH

See merge request Librem5/feedbackd!87
2022-12-15 10:10:50 +00:00
Chris Vogel 312f0697cb example: Document usage 2022-12-15 10:57:09 +01:00
Chris Vogel d4197ed7a4 run: Don't hardcode feedbackd
This allows arbitrary executables from the source tree with
a well defined environment.
2022-12-15 10:57:09 +01:00
Chris Vogel 59e42d8332 run: Export GI_TYPELIB_PATH as well
This is needed for programs needing GObject introspection data
2022-12-15 10:57:09 +01:00
Guido Gunther 341c6844a1 Merge branch 'fbd-theme-check' into 'main'
Add theme validator

See merge request Librem5/feedbackd!95
2022-12-14 12:25:52 +00:00
Guido Günther 49f697b232 doc: Add manual page for fbd-theme-validate 2022-12-13 13:47:18 +01:00
Guido Günther 584d4ddb6f doc: Convert manpages to rst
This will make it more fun to add details and more manpages.
2022-12-13 13:47:18 +01:00
Guido Günther 2e7483c775 ci: Use bookworm image for package build too
No need to fight against old glib and friends in PureOS
2022-12-13 13:47:18 +01:00
Guido Günther b64ce1290c Add theme validator
Recursively loads a given theme file.
2022-12-12 16:13:38 +01:00
Guido Günther ef5dd5abca theme-expander: Also log initial theme file 2022-12-12 16:13:38 +01:00
Guido Gunther b9430f0cf6 Merge branch 'man-page' into 'main'
doc: feedback stops when client disconnects

See merge request Librem5/feedbackd!96
2022-12-12 11:30:59 +00:00
Chris Vogel bd16d5761d doc: feedback stops when client disconnects
extended documentation for feedbackd.
2022-12-12 11:20:51 +00:00
Guido Gunther 0547a40cc6 Merge branch 'merge-themes' into 'main'
Implement recursive theme expansion and custom theme loading

Closes #38

See merge request Librem5/feedbackd!93
2022-12-12 11:07:59 +00:00
Guido Günther 9e13793bbe tests: Help old glib on PureOS along 2022-12-11 17:34:38 +01:00
Guido Günther 9824d1cfc6 README: Document custom themes 2022-12-11 17:34:38 +01:00
Guido Günther 83091be25d feedback-manager: Handle theme gsetting
Update the theme when the gsetting changes
2022-12-11 17:34:38 +01:00
Guido Günther f5757045aa manager: Don't load theme in constructor
Loading the theme can trigger calls to
fbd_feedback_manager_get_default() which then results in an endless look
as the object isn't fully initialized in constructed. Instead do
the setup in main() which has the advantage that the manager's life
cycle becomes more obvious too.
2022-12-11 17:34:38 +01:00
Guido Günther c3beac7d41 data: Allow to set feedback theme 2022-12-11 17:34:38 +01:00
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