Commit Graph

657 Commits (master)

Author SHA1 Message Date
Gerard Braad 17f7c3e53f Update meson setup command 2023-03-19 18:21:00 +10:00
Peter Hutterer 02991b7fd9 CI: update some actions to v3
Node 12 is deprecated, so let's bump to a newer version
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-12-07 09:00:38 +10:00
Peter Hutterer e44e982717 tuhi 0.6 2022-04-28 10:12:08 +10:00
Peter Hutterer 38e6fc29a7 flatpak: update the gnome runtime and to the latest pyxdg and svgwrite
pyparsing has new releases too but someone needs to check that...
2022-04-28 10:11:33 +10:00
Peter Hutterer 576d9d9fd2 Update translations
A few things were removed, let's keep the pot/po files up-to-date

$ meson compile -C translation-build tuhi-pot
$ meson compile -C translation-build tuhi-update-po
2022-04-28 10:06:45 +10:00
Peter Hutterer 008f65ca6b data: DrawingPerspective - don't translate the internal name page0
Same as 4facceebc4
2022-04-28 10:06:45 +10:00
albanobattistella e59fa5258d Update it.po 2022-04-28 09:13:54 +10:00
Peter Hutterer 57a2e9e7b7 CI: run apt-get update before apt-get install
Make sure our packageset is up-to-date

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-04-26 09:34:40 +10:00
Martin Owens 0b02f5f9c2 Change SVG export to use paths instead of line segments 2022-02-01 16:42:11 +10:00
Peter Hutterer 1362b89394 tools: add a basic SVG/PNG exporter tool
A commandline tool to convert the JSON files the GUI stores in
$XDG/tuhi/*.json. Makes testing SVG changes a bit easier.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-01-31 12:30:14 +10:00
Peter Hutterer 4ff7da5d41 protocol: handle the pen id packet correctly
We were re-using the header byte of the stroke header to count the bits.
Where that header is anything but 0xff we got out of sync and raised an
error. Fix this by renaming things so we don't accidentally use the
wrong fields.

Fixes #283

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2022-01-31 12:29:31 +10:00
Gündüzhan Gündüz f05fc2d80f
po: tr translation fixes (#277) 2021-02-08 13:57:36 +10:00
Gündüzhan Gündüz df7b92643e
Add turkish language translation (#275) 2021-02-04 15:58:19 +10:00
Peter Hutterer 7141412d14 Fix a typo in the ErrorPerspective
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-02-03 10:29:27 +10:00
Peter Hutterer c59730cf1f Replace Circle Ci with github workflows
It has a better integration to github (to no-ones suprise), even though its
use of docker containers isn't as convenient.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-01-25 14:02:12 +10:00
Peter Hutterer 16b0f9d2d5 meson.build: fall back to flake8 where flake8-3 does not exist
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-01-25 14:02:12 +10:00
Peter Hutterer 8ab43bf0b7 meson.build: explicitly check for gettext to be present
There's a meson issue where loading i18n produces a warning about missing
gettext but then proceeds to fail with confusing error messages where the i18n
module is used, see https://github.com/mesonbuild/meson/issues/6165

Work around this by explicitly checking for gettext after loading i18n.

Fixes #270

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-01-25 13:08:18 +10:00
Peter Hutterer 643099b858 Fix flake8 errors - ambiguous variable name 'l'
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-01-22 17:09:27 +10:00
Peter Hutterer b54ac6e99e Fix flake8 errors - module import not at top of the file
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-01-22 17:09:27 +10:00
Peter Hutterer 27164aba52 Fix flake8 errors - f-string without placeholders
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-01-22 17:09:27 +10:00
albanobattistella 9d36e3bad0
Add Italian translation (#263) 2020-09-09 07:14:06 +10:00
Peter Hutterer 4facceebc4 data: don't make the internal page0, page1 etc names translatable
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-09-04 09:43:15 +10:00
Peter Hutterer 4ce8d011d1 tuhi 0.5
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-09-02 10:24:42 +10:00
Peter Hutterer 9b4c0ca5ef Update the copyright year in the about dialog
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-09-02 10:24:42 +10:00
Peter Hutterer 02252b68b9 Update flatpak dependencies to latest versions
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-09-02 10:12:08 +10:00
Peter Hutterer eef877d6ce tuhi: use a Gtk.FileChooserNative dialog
This one hooks into the correct portal APIs, hopefully fixing the issue with
the Flatpak version not saving files correctly.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-08-26 11:03:26 +10:00
Peter Hutterer ea5177027c Update flatpak GNOME version to 3.36
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-08-26 11:03:26 +10:00
Peter Hutterer ba0424c6df gui: fix a flake8 complaint
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-08-26 11:03:26 +10:00
Peter Hutterer 59dfce5b8d gui: add an expanding label to the end, but don't expand flowboxes
pack_end, introduced in 29761204a9 means they
align to the bottom of the window. Where there aren't enough drawings to fill
the window, everything is bottom aligned. Hack around this by adding an empty
label to the bottom that expands to the maximum available size and stop
expanding the rest. This new label thus pushes everything up to the top
position.

Fixes 29761204a9

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-08-26 10:33:07 +10:00
Peter Hutterer 29761204a9 gui: pack the flowboxes with pack_end
The first drawings we load are from disk. If we sync a drawing from the device
with a different key (i.e. created in a different month), the new flowbox for
that drawing was appended to the list and in last place. This caused
out-of-order sorting (though a restart of Tuhi would fix it).

So simply change the behavior to sort by oldest timestamp first and pack_end()
for all of them. If we pack all our flowboxes with pack_end, they are
effectively in reverse order, i.e. last one added is first in the list.

Fixes #244

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-08-26 09:34:08 +10:00
Peter Hutterer 927fc0216b tuhi 0.4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-07-21 16:54:52 +10:00
Taihsiang Ho (tai271828) 3c1a84e1ab protocol: rm unused class WacomPacket 2020-04-21 15:23:44 +10:00
Robert Schütz 72d9dee37a live: keep $PATH and $DISPLAY 2020-04-06 15:38:17 +02:00
Peter Hutterer 7a881de9bb test: switch the stroke tests to use pytest
We're already running the meson test through pytest anyway and pytest is more
powerful than unittest. So let's switch, it's just a search/replace away.

Plus, this way the approach to dynamically create the tests based on the test
logs in the user's home directory is a lot saner.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-01-08 10:39:45 +01:00
Peter Hutterer fcdacb7187 test: switch the message tests from unittest to pytest
We're already running the meson test through pytest anyway and pytest is more
powerfull than unittest. So let's switch, it's just a search/replace away.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-01-08 10:39:45 +01:00
Peter Hutterer acc459f003 meson.build: check for 3.30 as minimum pygobject version
Fixes #238

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-01-08 10:12:24 +10:00
Peter Hutterer 53e2cebaf8 protocol: fix a flake8 issue
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-01-08 10:08:36 +10:00
Peter Hutterer 785c1e5f58 test: append the required \0xa to the spark messages
f5ea08f171 added this effective requirement for
the Spark and older generations, so let's make sure the test passes.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-01-08 10:08:36 +10:00
Niclas Hoyer f5ea08f171 Add support for long device names
If the device name is longer than one reply, the registration will crash.
This adds support for a variable number of replies until the reply ends
with `0x0a`.
2020-01-07 11:05:13 +10:00
Niclas Hoyer a0566e0dc0 Workaround for Spark register problems
This is a workaround for registering problems with Spark.
The registration hangs at "Connecting to device...".

Internally the `GENERAL_ERROR` occurs, which is expected
when registering a Spark device, but this should also
raise an AuthorizeException, but it instead reaches the
handler as DeviceError.

It is currently unclear why the `GENERAL_ERROR` passes to
this handler, so this catches any `GENERAL_ERROR` while
registering a Spark device.
2020-01-07 11:00:11 +10:00
Peter Hutterer 820f168f43 meson.build: drop python-devel dependency
This isn't needed. We need python but if we can run meson we can rely on
python being available anyway. And we don't actually use the python header
files here.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-01-03 10:35:15 +10:00
Peter Hutterer 110c77745c flatpak: allow access to $HOME
The whole purpose of Tuhi is to save the files after downloading and the
flatpak sandbox quietly dropped any file we saved in the target directory.

We could use xdg-download or something as allowed directory but let's open up
home itself since we don't want to limit where the files can be saved.

Fixes #230

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-01-03 10:34:50 +10:00
Niclas Hoyer 67eb54c908 Add company ID for Augmented Paper 2020-01-03 10:34:25 +10:00
Peter Hutterer 170b2c0d8a meson.build: add a custom message for the python3 dependency.
It's confusing to users because they don't get any indication that it's the
development package we need, not the normal python package.

This requires bumping meson's minimum version to 0.50 but hey, we can live
with that.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-11-04 09:43:08 +01:00
Piotr Drąg a11d51c42c Update Polish translation 2019-10-24 16:54:46 +02:00
Peter Hutterer f6fdf86649 meson.build: drop yaml from the required python module list
This isn't required for the flatpak, the yaml module is only needed in some of
the debugging/recovery tools but not in Tuhi itself.
2019-09-30 11:36:52 +02:00
Peter Hutterer d5cb1930e5 export: drop unused import
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-09-30 18:05:39 +10:00
Ishak BELAHMAR ddd896b1f6 tools: Add choices to fetch.format argument 2019-09-30 09:50:03 +02:00
Ishak BELAHMAR ea1dc798b1 Remove unused svg module 2019-09-30 09:50:03 +02:00
Ishak BELAHMAR bbff179a4d Add png export feature 2019-09-30 09:50:03 +02:00