Commit Graph

353 Commits

Author SHA1 Message Date
Jente Hidskes
b76b2fc362 MousePerspective: do not show "Add profile" button
Previously, we would just make it insensitive (i.e., not clickable). But
why show it at all if it cannot be used anyway?
2019-02-22 15:25:39 +10:00
Jente Hidskes
a9f4e80f2e MousePerspective: update for libratbag dropping device capabilities
See https://github.com/libratbag/libratbag/pull/631
2019-02-22 15:25:39 +10:00
Jente Hidskes
5974142dfc MousePerspective: satisfy flake8 2019-02-22 15:25:39 +10:00
Peter Hutterer
30de9b695a Sync ratbagd from libratbag
Dropping the svg handling

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-02-19 12:39:00 +10:00
Peter Hutterer
cbbf2c8ae5 meson.build: 0.2.903
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
0.2.903
2019-01-24 14:08:57 +10:00
Jente Hidskes
4d5a798814 ResolutionRow: remove delete button
This hasn't been added yet and likely won't in the foreseeable future.
2019-01-22 09:10:35 +10:00
muzena
53ed85bad5 Update Croatian language 2019-01-17 08:02:11 +10:00
Peter Hutterer
479e349407 Update German translation 2019-01-16 10:29:06 +01:00
Piotr Drąg
01809fdd53 Update POTFILES 2019-01-15 19:21:40 +01:00
Piotr Drąg
a686a46f41 Update Polish translation 2019-01-15 19:20:52 +01:00
Jente Hidskes
41cafa4b4d Replace appmenu with window-local menu
There's an initiave in GNOME to replace app menus with "in-window"
menus: https://gitlab.gnome.org/GNOME/Initiatives/issues/4

This commit brings Piper in line with this new approach.

Fixes #267.
2019-01-15 12:48:02 +10:00
Jente Hidskes
19755f1e91 Window: factor out back button handling
This makes _add_perspective suitable for more additions, such as the one
in the next commit.
2019-01-15 12:48:02 +10:00
Jente Hidskes
3cf2d9d9f9 MouseMap: scale appropriately on HiDPI screens
Scaling the SVG is sufficient, since all other drawing/position
operations depend on information from the SVG. With this change, Piper
should work nicely on HiDPI screens.

Fixes #281.
2019-01-10 12:33:34 +10:00
Jente Hidskes
ffcd9be354 ResolutionsPage: remove unused variable 2019-01-10 10:03:02 +10:00
Jente Hidskes
08ea82b08b MousePerspective: inform the user of errors
This simply connects the pieces: when a resync signal is emitted on the
device, we show the notification informing the user that something has
gone wrong.
2019-01-10 10:03:02 +10:00
Jente Hidskes
3b8f490b69 ratbagd: capture and emit the Resync signal 2019-01-10 10:03:02 +10:00
Jente Hidskes
2f02cd035c MousePerspective: generalize notification_commit
The Resync signal is emitted in a number of scenarios, so informing the
user that a commit went wrong might not be the actual problem. Hence, we
generalize the notification for all kinds of errors.
2019-01-10 10:03:02 +10:00
Jente Hidskes
0e63c00780 README: point users to Wiki for installation 2019-01-09 10:30:51 +01:00
Jente Hidskes
cad78efb26 MousePerspective: commit is now synchronous
Update the mouse perspective according to the changes made in f842f27.
2018-12-18 11:29:26 +10:00
Jente Hidskes
59bc2707c0 ratbagd: remove _dbus_call_async
Since https://github.com/libratbag/libratbag/pull/563, the
implementation in ratbagd is made async. Hence, we do not need the
asynchronisity provided by DBus anymore.
2018-12-18 11:29:26 +10:00
Peter Hutterer
1ac9b31e89 window: handle the daemon-disappeared signal
Deal with ratbagd disappearing in a graceful manner rather than just
exiting whenever we try to access the dbus interface next time.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-11-30 14:46:26 +01:00
Peter Hutterer
1d40b14722 ratbagd: send out a GObject signal when the daemon disappears
So we can handle this gracefully in Piper.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-11-30 14:46:26 +01:00
Peter Hutterer
06973d1234 mouseperspective: don't show the profile button if we only have one profile
Fixes #270

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-11-30 14:40:38 +01:00
Peter Hutterer
8e9f4c66fb ResolutionsPage: reset the last row if we click the "add" button
Reproducer:
- click on resolution A, B
- click on the + button
- click on resolution C

Now both B and C are revealed because B is still the last row and we call
toggle reveal on it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-11-30 14:39:54 +01:00
Peter Hutterer
c279fcbc92 Hide the "add a resolution" button
This hasn't been implemented in over a year, let's hide it from sight. Maybe
that spurns someone on to actually implement it.

It's an improvement to the GUI either way because the message printed to stdout
wouldn't be seen by most users starting the Piper through e.g. gnome shell. So
it just looks like the button is broken.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-11-30 14:37:19 +01:00
Peter Hutterer
037bf53328 gi_composites: fix flake8 warning
piper/gi_composites.py:134:19: W504 line break after binary operator

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-11-27 15:22:48 +10:00
Matthias Bach
5a44f971a8 Add installation via zypper to the documentation
Piper has recently been added to openSUSE, which uses zypper as its packaging system.
2018-10-26 13:38:19 +10:00
Jente Hidskes
31085fa36b Application: import the correct exception class
Fallout from 81b6be06ac.
2018-09-29 19:43:38 +02:00
Peter Hutterer
81b6be06ac ratbagd.py: sync with ratbagd (error code prefix removal) 2018-09-27 09:44:29 +10:00
Peter Hutterer
aaf9269b23 po: update German translation
Ratchet Mode is translated as Präzisionsmodus on the logitech.de website
(check the MX Anywhere 2s device), so let's go with that.
2018-09-13 10:55:13 +02:00
Peter Hutterer
8dc1a04e00 data: update the contributor list
From git shortlog, with the emails removed because I'm pretty sure just
because you sent a patch once to piper doesn't mean everyone needs to know
your email address.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-09-13 10:55:13 +02:00
Piotr Drąg
f73f46e617 Update Polish translation 2018-09-12 21:34:50 +02:00
Piotr Drąg
6fc487aedf build: localize .desktop and .appdata files
Fixes https://github.com/libratbag/piper/issues/257
2018-09-12 19:58:21 +02:00
Piotr Drąg
cc59902a65 Use Unicode typography in user-visible strings
See https://developer.gnome.org/hig/stable/typography.html
2018-09-12 18:44:29 +02:00
Piotr Drąg
fbbc4235a0 data: add translator credits to the About dialog 2018-09-12 18:43:56 +02:00
Peter Hutterer
be54fc4e1e README: add a reference to piper.devel
Fixes #238
2018-09-12 13:27:39 +02:00
Peter Hutterer
aa37ca33b3 Catch the Unknown Method dbus error and display a useful error
Running piper from git/flatpak against a ratbagd without the GetSvgFd call
should produce a useful error message.

We can just assume that any failed call is a version error rather than a
programming error - ratbagd.py prints the full error to stderr so we can catch
any bugs during development.

Fixes #255
2018-09-12 13:27:39 +02:00
Peter Hutterer
172b0a73f1 README: link to libratbag's device data files
Better than maintaining a wiki because that always gets stale.

Fixes #254
2018-09-12 13:27:39 +02:00
Peter Hutterer
b2a3b3ea0d README: add a screenshot to the error page
So at least users get a tast of the cheese^Wmousetrap^Werror page before
getting overly confused by it.
2018-09-12 13:27:39 +02:00
Peter Hutterer
90a17676c2 Improve the README to make it more user-friendly.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-09-12 13:27:39 +02:00
Peter Hutterer
3f91b6ef7c data: fix the launchable ID in the appdata file
Fixes https://github.com/flathub/org.freedesktop.Piper/issues/1
2018-09-12 08:16:47 +10:00
Peter Hutterer
2cc9fa58b2 data: link to flathub-compatible 16:9 screenshots in the appdata
Fixes: https://github.com/flathub/org.freedesktop.Piper/issues/1

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-09-10 07:45:08 +02:00
Peter Hutterer
674df8f2d5 meson.build: 0.2.902 0.2.902 2018-09-07 11:16:21 +10:00
Peter Hutterer
3877b53d2c data: add the appdata.xml file
Can be tested by installing the .xml into /usr/share/metainfo/, then running
gnome-software --prefer-local (after killing any running g-s instance). This
may take a while to refresh and if you have a repo that contains piper it may
still be preferred for some reason.

Piper is under "Utilities", if the search doesn't find it immediately, wait
for a while? Or start searching for "org.freedesktop.Piper".

Technically appdata requires 16:9 screenshots but it seems to work with the
ones we have online for the wiki already (they're a little bit too high for
16:9).

Fixes #236

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-09-06 09:26:35 +02:00
Peter Hutterer
af41babaff Add flatpak support
Run these two commands:
flatpak-builder --user build-dir --force-clean org.freedesktop.Piper.json
flatpak-builder --run build-dir ~/code/ratbag/piper/org.freedesktop.Piper.json piper

And marvel at the piper flatpak.

This is the minimal version, it starts with two gtk-related complains that may
be fixable.

The env "XSLT_CONFIG": "pkg-config libxslt" is required for lxml to build, see
lxml PR 259 on github.

Fixes #202

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-09-06 09:26:35 +02:00
Peter Hutterer
09439cba21 Fetch file descriptors for the SVGs, not paths
This allows us to read SVGs when we're sandboxed and don't have direct access
to the file system.

This requires an up-to-date ratbagd to get access to GetSvgFd()
See https://github.com/libratbag/libratbag/pull/523

Fixes #245
2018-09-05 01:09:32 +02:00
Peter Hutterer
d7f1a1457d ratbagd.py: sync with ratbagd (fd passing for GetSvg) 2018-09-05 01:09:32 +02:00
Peter Hutterer
d97e259496 meson.build: add hooks to check for a minimum ratbagd version
Up until the currently requested minimum version, ratbagd didn't have a
--version command so an error is equivalent to 'too old'.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-09-04 23:49:29 +01:00
Peter Hutterer
980a2140b3 meson: downgrade the 'ratbagd not found' to a message only
This is too annoying when you build in multiple different prefixes etc. and
the PATH isn't always set up. Let alone requiring distributors to install
ratbagd to build Piper.

Downgrade it to a large warning and let's hope people at least read that one.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-08-30 08:51:22 +02:00
Peter Hutterer
8c70220737 README: note that we recommend libratbag from git
Related #239
2018-08-29 11:21:19 +02:00