Commit Graph
100 Commits
Author SHA1 Message Date
Dorota Czaplejewicz 1b1fbed7de layouts: Change type based on shape 2019-10-29 13:21:46 +00:00
Dorota Czaplejewicz 264d30d884 build: Disallow implicit int conversions 2019-10-29 13:21:46 +00:00
Dorota Czaplejewicz 38d8290b59 height: Adjust based on layer surface width 2019-10-29 13:21:46 +00:00
Dorota Czaplejewicz 254b65681a layersurface: Update from phosh 2019-10-29 13:21:46 +00:00
Dorota Czaplejewicz fbb3824a3d height: Derive from display width 2019-10-29 13:21:46 +00:00
Dorota Czaplejewicz 24126ad4f3 wayland: Listen to output changes 2019-10-29 13:21:46 +00:00
Dorota Czaplejewicz 869a0af67f cleanup: eek-gtk.h 2019-10-29 13:21:46 +00:00
Dorota Czaplejewicz 8f7f6c05c0 renderer: Remove dependencies on renderer in button rendering functions
The rendering functions become more pure, which, once reached, will allow for better tracking of what they do and easier modularization.
2019-10-28 21:13:58 +00:00
Dorota Czaplejewicz 01fe433612 icons: Remove caching 2019-10-25 15:43:29 +00:00
Dorota Czaplejewicz 63e55ff5c4 renderer: Free temporary surfaces 2019-10-25 15:18:37 +00:00
Dorota Czaplejewicz 8d4d50cfca Merge branch 'ci_deps' into 'master'
Ci deps

See merge request Librem5/squeekboard!228
2019-10-25 09:54:38 +00:00
Dorota Czaplejewicz dde659dbd3 ci: Delete large debug build directory early
There's no need to keep it for a long time, as its only purpose is to feed the test stage
2019-10-24 20:29:19 +00:00
Dorota Czaplejewicz 788a39f144 ci: Start test stage immediately after build_meson 2019-10-24 20:28:13 +00:00
Dorota Czaplejewicz 43e2b7b803 Merge branch 'master' into 'master'
i think in italian "," is better then "?"

See merge request Librem5/squeekboard!224
2019-10-24 18:17:58 +00:00
Dorota Czaplejewicz bdef7b3516 Merge remote-tracking branch 'kareema/japanese-kana-keyboard-layout' into HEAD 2019-10-24 18:09:16 +00:00
Dorota Czaplejewicz 57d36e476b Merge branch 'german-keyboard-layout' into 'master'
layouts: Add German keyboard layout

See merge request Librem5/squeekboard!227
2019-10-24 18:03:23 +00:00
Dorota Czaplejewicz 1290fd4a1e rust: Fix old compiler compat 2019-10-23 15:11:19 +00:00
Dorota Czaplejewicz c99efc430c presses: Move press handling to Rust
This fixes some rendering things which would happen with multiple state-sharing buttons. It also removes some interfaces exposing rows, views, layouts, and buttons, bringing the code closer to removing them from the FFI entirely.
2019-10-23 15:11:16 +00:00
Dorota Czaplejewicz ce6c9cbea3 Merge branch 'cleanup' into 'master'
cleanup: Unused types

See merge request Librem5/squeekboard!222
2019-10-22 13:38:41 +00:00
Dorota Czaplejewicz 4cdfc30c29 Merge branch 'fallbacks' into 'master'
layouts: Simplify fallbackss handling

See merge request Librem5/squeekboard!221
2019-10-22 13:25:15 +00:00
Dorota Czaplejewicz 3b6c19401c util: Added pointer comparison struct
util::Pointer should be suitable for storing key states in bags like pressed_keys
2019-10-20 09:47:10 +00:00
Dorota Czaplejewicz 29231f7e31 cleanup: Unused types 2019-10-20 09:47:10 +00:00
Dorota Czaplejewicz 8f61a26fb4 Merge branch 'fix' into 'master'
tests: Fix automatic merge

See merge request Librem5/squeekboard!225
2019-10-19 16:53:09 +00:00
Dorota Czaplejewicz 8fd63cea80 tests: Fix automatic merge
The merge tool didn't realize that new files from one branch should have a format adhering to that of another branch.
2019-10-19 16:47:26 +00:00
Dorota Czaplejewicz ac58b675ef layouts: Simplify fallbackss handling 2019-10-16 09:43:41 +00:00
Dorota Czaplejewicz 89b56ddccf util: C-wrapped data don't need to be cloneable 2019-10-10 16:54:02 +00:00
Dorota Czaplejewicz f56c5e3879 examples: Remove stale eekboard example 2019-10-10 16:16:53 +00:00
Dorota Czaplejewicz 8eda2cd04d docs: Remove stale eekboard docs 2019-10-10 16:15:41 +00:00
Dorota Czaplejewicz cfd2bff1aa data: Remove eekboard desktop files 2019-10-10 16:15:05 +00:00
Dorota Czaplejewicz 02501aee9e authors: Update 2019-10-10 16:13:30 +00:00
Dorota Czaplejewicz 70056b68a7 Merge branch 'undefined' into 'master'
Replace it.yaml

See merge request Librem5/squeekboard!212
2019-10-10 14:50:09 +00:00
Dorota Czaplejewicz 9e078be603 buttons: Buttons are next to each other, padding is visual only 2019-10-09 20:34:46 +00:00
Dorota Czaplejewicz ac68d5d0a8 tests: Check keymap generation results 2019-10-09 16:08:50 +00:00
Dorota Czaplejewicz b45edcd4fe tests: Emulate clicking all submitting buttons 2019-10-09 15:54:06 +00:00
Dorota Czaplejewicz dc2bc46167 keymap: Simplified key state passing
There's no need to treat states as a shared resource before they are placed inside buttons.
2019-10-09 15:38:21 +00:00
Dorota Czaplejewicz 9cd439767e virtual_keyboard: Submit multi-codepoint strings 2019-10-09 15:13:46 +00:00
Dorota Czaplejewicz 212e55d7cf caches: Stop using due to bugginness
The button cache is storing only button outlines (not useful to us), and it only cares about active/inactive states (there are more).

This will have to be rewritten sanely, so for the time being, disabling it is not going to deal a big performance penalty.
2019-10-09 09:24:42 +00:00
Dorota Czaplejewicz 31fdde4da9 keycodes: Moved submission to Rust 2019-10-09 09:23:06 +00:00
Dorota Czaplejewicz 10bad4ebe3 warnings: Fix and silence 2019-10-09 08:15:03 +00:00
Dorota Czaplejewicz da5a83f367 action: Rename file to action.rs 2019-10-09 08:11:28 +00:00
Dorota Czaplejewicz ef38fd3e64 symbol: Eliminate in favor of Action 2019-10-09 08:06:17 +00:00
Dorota Czaplejewicz 46d3312c86 cleanup: Unused symbol functions 2019-10-09 08:03:39 +00:00
Dorota Czaplejewicz 3f3e33c853 style: Set active button color 2019-10-08 18:29:03 +00:00
Dorota Czaplejewicz aee981d9c0 debian: Bump distribution 2019-10-08 10:59:00 +00:00
Dorota Czaplejewicz e14d411150 logs: Silence missing file warnings 2019-10-03 12:59:26 +00:00
Dorota Czaplejewicz 746d842dd4 Merge branch 'patch-3' into 'master'
Update es.yaml

See merge request Librem5/squeekboard!195
2019-10-03 11:37:57 +00:00
Dorota Czaplejewicz a31f9b5e04 layout: Register it 2019-10-02 18:39:44 +00:00
Dorota Czaplejewicz 94aec87b5d Merge branch 'el_layout' into 'master'
layouts: Add Greek

See merge request Librem5/squeekboard!198
2019-10-02 18:02:12 +00:00
Dorota Czaplejewicz 854a9bb22e layouts: Add Greek
Greek layout created by Antonis Tsolomitis
University of the Aegean, Department of Mathematics, atsol@aegean.gr
2019-10-02 17:56:16 +00:00
Dorota Czaplejewicz 477a883885 style: Add styling for locked buttons 2019-10-02 16:32:13 +00:00
Dorota Czaplejewicz b3a63042cb Merge branch 'undefined' into 'master'
italian keyboard

See merge request Librem5/squeekboard!193
2019-10-02 13:49:08 +00:00
Dorota Czaplejewicz 7f704bcd61 style: Rename button selectors 2019-10-01 08:11:44 +00:00
Dorota Czaplejewicz a1b811aada tests: Compile in advance
Cargo is always trying to compile things if they are not ready yet. It caused the first test to take a lot of time, and potentially time out.
2019-09-29 09:01:09 +00:00
Dorota Czaplejewicz 1b424bd663 layout: Attempt to build xdg keymap at every load 2019-09-29 07:54:32 +00:00
Dorota Czaplejewicz 938ba53a38 es layout: Add to resources and testing 2019-09-28 21:53:24 +00:00
Dorota Czaplejewicz 1e609f4550 Merge branch 'patch-1' into 'master'
Spanish keyboard layout

See merge request Librem5/squeekboard!187
2019-09-28 21:51:50 +00:00
Dorota Czaplejewicz e33f591a1f layouts: Test fallback order 2019-09-28 21:37:51 +00:00
Dorota Czaplejewicz b6d25da7c2 layout: Fallback to builtin before switching layouts
When the user-provided layout was broken or missing, the loading would proceed with the fallback layout. It tries to load the builtin one first now.
2019-09-28 21:17:32 +00:00
Dorota Czaplejewicz 288d2247da cleanup: Remove dead fullscreen mode 2019-09-28 18:29:58 +00:00
Dorota Czaplejewicz e5eb9f0fd3 cleanup: Drop unused header 2019-09-28 18:18:44 +00:00
Dorota Czaplejewicz 908aa20036 cleanup: Drop unused EekboardContext 2019-09-28 18:17:26 +00:00
Dorota Czaplejewicz 60f1ca1408 style: Avoid conflict with GTK widget names
GTK style provider loads the theme on top of the selected CSS file. To ignore the theme, element names must be different than the predefined ones.
2019-09-28 12:11:32 +00:00
Dorota Czaplejewicz 4fee2fad01 debian: Fix build-arch
Some builds call the `build-arch` target instead of `build`. That causes the old `Cargo.lock` to be used.
2019-09-27 16:58:27 +00:00
Dorota Czaplejewicz 0985724b19 shellcheck: Pass cargo.sh 2019-09-27 13:47:49 +00:00
Dorota Czaplejewicz 7aff7977fc build: Remove empty variable from cargo.sh 2019-09-27 13:47:04 +00:00
Dorota Czaplejewicz 55bb263a12 build: Fix script path detection 2019-09-27 13:27:30 +00:00
Dorota Czaplejewicz 32b85e75db Merge branch 'cargo.sh' into 'master'
Stop requiring Bash for cargo.sh

See merge request Librem5/squeekboard!181
2019-09-27 13:24:23 +00:00
Dorota Czaplejewicz e513cb9b54 style: Use outline name as CSS class 2019-09-26 13:28:31 +00:00
Dorota Czaplejewicz 6fd7ab7405 rendering: Generalize outline rendering 2019-09-26 12:51:45 +00:00
Dorota Czaplejewicz 15833323ae styling: Use same context for the entire rendering of a button 2019-09-26 12:51:39 +00:00
Dorota Czaplejewicz 653462721b cleanup: Unused default backgrounds 2019-09-26 12:48:22 +00:00
Dorota Czaplejewicz 2889e50507 style: Simplified layout styling
Layout background is styled in the same place as button background, and obtains the path "layout".
2019-09-26 11:10:25 +00:00
Dorota Czaplejewicz 6b15f69e00 style: Use path instead of class for key 2019-09-26 11:08:38 +00:00
Dorota Czaplejewicz 231982d7f7 Drop dead drawing procedures 2019-09-26 07:27:16 +00:00
Dorota Czaplejewicz 3bea256ca5 Appease Debian's Rust version's borrow checker 2019-09-26 07:02:06 +00:00
Dorota Czaplejewicz 4c0f23c5c1 layout: Unhardcode button and row spacing values
They are specified by each layout now
2019-09-25 19:01:38 +00:00
Dorota Czaplejewicz 27d54fb38a Merge branch 'reduce-flickr' into 'master'
Don't hide keyboard right away

See merge request Librem5/squeekboard!175
2019-09-25 18:45:22 +00:00
Dorota Czaplejewicz de43d67638 display: Remove unused corner_radius 2019-09-25 18:10:58 +00:00
Dorota Czaplejewicz 54f9e61b6a style: Make pressed button 20% lighter 2019-09-24 11:28:29 +00:00
Dorota Czaplejewicz 94b7ba1ccc layout: Improved UI layout looks 2019-09-24 11:28:29 +00:00
Dorota Czaplejewicz e7d30d933f build: Simplified the calling of cargo.sh 2019-09-24 11:27:01 +00:00
Dorota Czaplejewicz 150fb3cf6a deps: Accept only bugfix version changes 2019-09-24 11:18:35 +00:00
Dorota Czaplejewicz 169f33c67a Merge branch 'pre-release' into 'master'
Pre release

See merge request Librem5/squeekboard!171
2019-09-24 10:52:52 +00:00
Dorota Czaplejewicz 0f5c5ef10f Bump version number 2019-09-24 10:46:41 +00:00
Dorota Czaplejewicz 6e183ccb13 cargo: Update lock 2019-09-24 10:46:21 +00:00
Dorota Czaplejewicz bb3c26b0d8 ci: Build .deb 2019-09-23 13:06:45 +00:00
Dorota Czaplejewicz d32749d533 debian: Silence false positive in Lintian
Needed to have working repository builds
2019-09-23 10:48:40 +00:00
Dorota Czaplejewicz 36306f2eea Merge branch 'backslash' into 'master'
us: Escape backslash character

See merge request Librem5/squeekboard!168
2019-09-22 21:32:05 +00:00
Dorota Czaplejewicz a3e421db3d build: Fix Debian Cargo.toml mismatch
Debian uses a separate registry for the packages it distributes. Checksums for some Debian packages don't match anything that's available on crates.io, which is the default source of dependencies. *linked-hash-map* in particular doesn't provide any hash.

As a result, Debian's `Cargo.lock` and crates.io's `Cargo.lock` are not matching, and building is only possible with one or the other, depending on what's checked in.

As a separate issue, Debian packages are usually not checked in in multiple versions, so checking in Debian's `Cargo.lock` would result in the package not building whenever a bugfix is distributed (due to checksum changes).

This change removes the crates.io `Cargo.lock` so that a new one will be created whenever a .deb is built, solving the above. What keeps falsely passing builds from happening is `Cargo.toml` specifying no interface changes, as well as Build-Depends, which seem enough for any other Debian package.
2019-09-20 09:52:36 +00:00
Dorota Czaplejewicz 241e5c0fc6 debian: Use Debian versions of dependencies 2019-09-20 09:40:18 +00:00
Dorota Czaplejewicz 28e0c26671 build: Change dependencies to match Debian packages 2019-09-20 09:40:18 +00:00
Dorota Czaplejewicz 7d0070a155 debian: Use CARGO_HOME more like librsvg does 2019-09-20 09:37:46 +00:00
Dorota Czaplejewicz 225b243446 tests: Describe how to test 2019-09-13 15:55:26 +00:00
Dorota Czaplejewicz db994da531 keysyms: Remove dead code 2019-09-13 15:25:48 +00:00
Dorota Czaplejewicz d47aff357b layout: Remove dead code 2019-09-13 15:21:29 +00:00
Dorota Czaplejewicz c8cc5b1997 layout: Bundle number layout 2019-09-13 09:11:20 +00:00
Dorota Czaplejewicz edb28cb859 tests: Verify all bundled layouts 2019-09-13 09:09:17 +00:00
Dorota Czaplejewicz b07689939b Merge branch 'fixbuild' into 'master'
build: Fix cargo behaviour

See merge request Librem5/squeekboard!161
2019-09-12 11:32:16 +00:00
Dorota Czaplejewicz 6072e5768a build: Fix cargo behaviour
Cargo caused .deb builds to crash by storing its data in $HOME.

https://www.debian.org/doc/debian-policy/ch-source.html#main-building-script-debian-rules says TMP_DIR may be used freely, so that's where Cargo will keep its stuff now.
2019-09-12 11:26:03 +00:00
Dorota Czaplejewicz 2352e31f01 us: Simplify by using Unicode directly 2019-09-11 12:03:57 +00:00