on non mouse devices the first two buttons can now be remapped.
uses the new DeviceType property exposed by ratbagd.
Signed-off-by: Julian Kandlhofer <julian.kandlhofer@gmail.com>
- fix changes to IsActive potentially not being notified about
- make the profile dirty after changing report rate
This fixes the "Apply" button being disabled after changing report rate
in Piper (once this file gets synchronized there).
When the build directory is not _under_ the source directory then
flake8 cannot find the local config file and it will try to check
piper.in which fails per 1ed66262b7
To fix this I propose to
1. pass the config to flake8 explicitly
2. remove piper.in from the args list since it is excluded in the
flake8 config anyway
3. check the generated $build/piper.devel and $build/piper too per
1ed66262b7
4. merge the --ignore in meson.build with the config
Steps to reproduce:
```
$ meson ../build
$ ninja -C../build test
...
[17/18] Running all tests.
1/5 piper:all / files-in-git SKIP 0.01s exit status 77
2/5 piper / validate appdata file OK 0.04s
3/5 piper / svg-lookup-check OK 0.10s
4/5 piper / check-svg OK 0.18s
5/5 piper / flake8 FAIL 1.00s exit status 1
>>> MALLOC_PERTURB_=32 /gnu/store/yhhvrj6bns3ws85d338ah3bsc8jv4x64-profile/bin/flake8 --ignore=E501,W504 /home/tobias/ghq/github.com/libratbag/piper/piper /home/tobias/ghq/github.com/libratbag/piper/piper.in
――――――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――――――
/home/tobias/ghq/github.com/libratbag/piper/piper.in:11:19: E999 SyntaxError: invalid syntax
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
```
Using a Quit button is an anti-pattern and might be confusing for users
expecting the quit button to be on the same position as of other apps'.
Note that the button is on the left and by default the close button is
on the right.
CircleCI is mostly unviable these days because it severely limits the
number of runs we can do. Since we don't do anything fancy anyway, let's
port to github actions, re-using some of the infrastructure libratbag
already has in place.
We use meson/ninja from pip because building with the latest gives us
some heads-up about upcoming changes. And we're now only building on
ubuntu because that's what's easiest in github. Oh well.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This is so we can install the data files simpler, let's move anything
that's a test into a new tests/ directory so the rest only contains true
sources.