Commit Graph

2298 Commits

Author SHA1 Message Date
bb5b1faaea Update German translation 2023-01-15 19:41:33 +00:00
dcz
5f12199de1 Merge branch 'hu' into 'master'
Add Hungarian layout

See merge request World/Phosh/squeekboard!585
2023-01-05 17:53:45 +00:00
8c7897da4d Add Hungarian layout 2023-01-05 17:14:18 +01:00
dcz
b0bf78b2a6 Merge branch 'saver' into 'master'
popover: Deactivate settings button when lock screen is on

See merge request World/Phosh/squeekboard!582
2023-01-02 12:21:23 +00:00
dcz
8fa4bf1b40 Merge branch '21' into 'master'
rust: Use 2021 eition

See merge request World/Phosh/squeekboard!584
2023-01-02 12:20:49 +00:00
1704f1b4cb rust: Use 2021 eition 2022-12-21 12:24:03 +00:00
828279d03c rust: Use 2018 eition
This edition has better syntax around scoping and `use`.
2022-12-21 12:20:17 +00:00
31a7acb0eb popover: Apply settings enabled stateto UI 2022-12-08 10:07:09 +00:00
7130ac9529 popover: State can be printed 2022-12-08 10:07:09 +00:00
c590064ce3 popover: Connect to screensaver event 2022-12-08 10:07:09 +00:00
3366090454 popover: Use thread-safe reference
This reference will be modified from the screensaver thread.
2022-12-08 09:38:31 +00:00
e88410d412 util: Add thread-safe c wrapper 2022-12-08 09:38:31 +00:00
ae15869d07 popover: Able to receive screensaver events 2022-12-08 09:38:31 +00:00
cf6171a51f loops: Use Void for infinite loops 2022-12-06 13:01:25 +00:00
ea5e36e9fd screensaver: Catch activeness changes 2022-12-06 12:58:17 +00:00
783ca9ae11 structure: Create a module for custom event loops 2022-12-06 12:19:17 +00:00
dcz
38165ac039 Merge branch 'event' into 'master'
Decouple event handling from concrete logic

See merge request World/Phosh/squeekboard!581
2022-12-06 12:14:17 +00:00
dcz
f4c03ce6e8 Merge branch 'sizes' into 'master'
Fix resizing

See merge request World/Phosh/squeekboard!580
2022-11-30 13:10:01 +00:00
7f1d237551 event loop: Move event handlers from event loop driver to main loop 2022-11-28 15:53:41 +00:00
6d01386d8a main: Moved event loop definition close to actor 2022-11-28 15:53:41 +00:00
e5be92efae loop driver: Decouple from concrete state 2022-11-28 15:53:41 +00:00
2f011a57dd test: Mark loop scheduling test for rewrite 2022-11-28 15:53:41 +00:00
e7c2350c92 event loop: Decouple event handler from concrete state 2022-11-28 15:53:41 +00:00
d51408a3e0 event loop: Add descriptions 2022-11-28 15:53:41 +00:00
b8c0836f51 event loop: Decouple event type from handler 2022-11-28 15:53:41 +00:00
e0b37d60c4 event loop: Decouple state type from event handler 2022-11-28 15:53:41 +00:00
23d6beee8e event loop: Decouple event timeout from event type 2022-11-28 15:53:41 +00:00
9c9f371f91 Rename LevelKeyboard to Layout 2022-11-28 15:53:41 +00:00
805c0d27fd panel: Fix resize when reusing the window
When the panel window was reused, it was not re-initialized. That includes the panel size request. If the last panel size was matching a different display size (including orientation), the newly shown panel would re-use that size instead of respecting the newly requested size.
2022-11-27 18:04:18 +00:00
9242bb679d panel: Hardcode some debugging
Quickly done, useful for development tests. For user control, this requires connecting to some switch.
2022-11-27 18:02:47 +00:00
dcz
e9cc20106b Merge branch 'desktop-file' into 'master'
desktop-file: Add X-GNOME-* for session management

See merge request World/Phosh/squeekboard!579
2022-11-08 09:00:05 +00:00
8cf9aab78f desktop-file: Add X-GNOME-* for session management
This add the X-GNOME-* bits that are currently shipped in
sm.puri.OSK0.desktop allowing distributions to drop this file and make
it a plain symlink to sm.puri.OSK0.desktop.

If squeekboard is used in another context that doesn't use gnome-session
the entries have no effect.
2022-11-08 08:49:17 +01:00
1049a6a875 Add Czech translation 2022-10-26 12:31:23 +00:00
dcz
2ade582463 Merge branch 'splitl' into 'master'
layout: cleanups

See merge request World/Phosh/squeekboard!577
2022-10-09 14:40:55 +00:00
dcz
838d6b0bf6 Merge branch 'upgrust' into 'master'
debian: Upgrade rust dependency

See merge request World/Phosh/squeekboard!576
2022-10-08 08:53:54 +00:00
973bbaca4b layout: Increase separation between mutable and logic 2022-10-01 18:29:24 +00:00
14282387f2 layout: Increase separation between mutable and logic 2022-10-01 18:25:35 +00:00
a5fdc25452 layout: Unbox buttons
The Box was just polluting the code, and the original reason for it (passing buttons individually to C) is gone.
2022-10-01 16:38:10 +00:00
952ec805ed layout: Put all button state into active_buttons
Ths gets rid of Rc<RefCell<>> sharing of state, which can be hard to keep track of.
In addition, there's no longer any duplication of button state.
2022-10-01 16:38:01 +00:00
74c5ef4a51 layout: Separate button info from state
Splitting out state into a dedicated place lets keep all the immutable metadata in one place, and all state in another.
2022-10-01 13:37:35 +00:00
fc4fa63cc6 layout: Remove unused code 2022-10-01 12:10:03 +00:00
5e12666b8f layout: Pressed buttons are now a list of indices
This makes it possible to copy layout state wholesale, as well as to drop shared state of keys.
2022-10-01 11:11:33 +00:00
649f67d319 layout: Split out static data
This will make it possible later to cache this data or compare for best size selection without hassle.
2022-09-30 17:42:03 +00:00
c017a773ea layout: Gather state-related stuff together 2022-09-30 17:12:00 +00:00
7a8932d686 debian: Upgrade rust dependency
This avoids problems with cargo pulling packages with unsupported edition in the future, as well as opens up the ability to use new language features.

Most importantly, cargo deps can be unlocked.
2022-09-30 16:01:36 +00:00
dcz
afe6a6cf74 Merge branch 'orphans' into 'master'
tests: Check for orphaned layout files

See merge request World/Phosh/squeekboard!574
2022-09-29 16:25:47 +00:00
dcz
e778be8f13 Merge branch 'newss' into 'master'
repo: Add missing NEWS file

See merge request World/Phosh/squeekboard!575
2022-09-29 16:25:33 +00:00
dcz
7ffc2c4f86 Merge branch 'add-wide-swedish' into 'master'
Add wide Swedish layout

Closes #351

See merge request World/Phosh/squeekboard!573
2022-09-16 07:43:50 +00:00
a09a51ada9 Add wide Swedish layout
Closes https://gitlab.gnome.org/World/Phosh/squeekboard/-/issues/351
2022-09-15 18:59:43 +02:00
d26927dc44 tests: Check for orphaned layout files
This adds a test which scans the layouts directory for files which have not been added to the resources file.
The majority os user-submitted layouts don't include layout registration, and I ran out of ideas for how to make it more visible in the documentation. Instead, it's going to be solved on the other side: the CI pipelines shall fail.

To make it easy on experimenters with untidy trees, it's disabled by default.
2022-09-15 14:13:40 +00:00