Commit Graph

2082 Commits

Author SHA1 Message Date
03aa04d6d8 main: Add debug flag to show GTK inspector
Since squeekboard doesn't ever get input focus and hence we can't
activate it via keybinding add a debug flag.
2021-11-23 11:36:37 +01:00
dcz
59662444d7 Merge branch 'fix-style-provider-crash' into 'master'
renderer: Disconnect theme change signal handler

See merge request World/Phosh/squeekboard!484
2021-11-22 17:16:01 +00:00
379a09e0d6 renderer: Disconnect theme change signal handler
The renderer does not stick around so we need to disconnect the signal
handler on "dispose". Since the renderer is not a GObject track the
signal id manually instead of using `g_signal_connect_object ()`.

Fixes 1995285 ("eek-renderer: Honor theme changes")
2021-11-22 17:56:15 +01:00
1c875cda6c main: Add debug flag to always show squeekboard on start
This makes debugging way fun since there's no need to mess
with the running DBus, gsettings or anything else.
2021-11-22 17:10:43 +01:00
a6d766e650 renderer: Use g_debug ()
Switching to `g_debug ()` after adding `G_LOG_DOMAIN` got lost
in a rebase.
2021-11-22 17:08:17 +01:00
74977ec88f gtk-keyboard: Don't set variable to NULL twice in a row 2021-11-22 17:08:15 +01:00
dcz
2169e0393b Merge branch 'phosh-dark' into 'master'
Use dark theme when run in a Phosh session

Closes #242

See merge request World/Phosh/squeekboard!482
2021-11-22 13:27:07 +00:00
dcz
9ba900bf42 Merge branch 'honor-theme-changes' into 'master'
eek-renderer: Honor theme changes

Closes #296

See merge request World/Phosh/squeekboard!483
2021-11-22 13:23:22 +00:00
c3337b05b6 main: Use dark theme when run in a Phosh session
Downstreams either don't restyle making us divert from the designs or
use squeekboard-restyled adding extra complexity.

Closes: #242
2021-11-22 11:02:10 +01:00
28a48635b3 main: Avoid two error variables in the same function
This also fixes a superfluous additional `NULL` assignment right
after declaring error and setting it to NULL.
2021-11-22 11:01:06 +01:00
475761ec73 main: Drop broken support G_BUS_TYPE_SYSTEM
Fliping opt_system would still use opt_session so drop that.
While at that remove G_BUS_TYPE_NONE which can't be set by
an option either.
2021-11-22 11:01:06 +01:00
1995285b65 eek-renderer: Honor theme changes
Reload style providers so e.g. switching to HighContrast is handled.

Closes: #296
2021-11-22 10:27:43 +01:00
73515b5fe1 eek-renderer: Fix indentation 2021-11-22 10:27:43 +01:00
8cfce093e7 eek-renderer: Add log domain
This allows to only log renderer messages similar to what
other projects to. `G_MESSAGES_DEBUG=all` is unaffected.
2021-11-22 10:27:43 +01:00
359376041d main: Honor --help and -h
Use a GOptionContext to display command line options (that are already
handled by e.g. gtk_init anyway).

This turns:

  $ squeekboard -h
  Debug: Tried file "/home/agx/.local/share/squeekboard/keyboards/us.yaml", but it's missing: No such file or directory (os error 2)
  Info: Loaded layout Resource: us
  Debug: Tried file "/home/agx/.local/share/squeekboard/keyboards/us.yaml", but it's missing: No such file or directory (os error 2)
  Info: Loaded layout Resource: us

** (squeekboard:8015): WARNING **: 19:03:13.125: DBus unavailable, unclear how to continue. Is Squeekboard already running?

into the more useful

  $ squeekboard -h
  Usage:
    squeekboard [OPTION…] - A on screen keyboard

  Help Options:
    -h, --help               Show help options
    --help-all               Show all help options
    --help-gtk               Show GTK+ Options

  Application Options:
    --display=DISPLAY        X display to use

...
2021-11-21 20:45:58 +01:00
6e1faafa2f main: Remove trailing whitespace 2021-11-21 20:37:51 +01:00
dcz
5d6a9556ae Merge branch 'keyboard-layout-armenian' into 'master'
armenian typewriter and phonetic keyboards.

See merge request World/Phosh/squeekboard!478
2021-11-19 18:27:54 +00:00
dcz
e487343046 Merge branch 'message' into 'master'
dbus: Hint that maybe squeekboard is running

See merge request World/Phosh/squeekboard!475
2021-11-19 15:56:54 +00:00
dcz
f15e4db818 Merge branch 'meson-0.60.0' into 'master'
data: Fix build with meson 0.60.0

Closes #299

See merge request World/Phosh/squeekboard!479
2021-11-06 13:05:27 +00:00
aa0e7d1c19 data: Fix build with meson 0.60.0
Drop the possitional argument since we otherwise see

  data/meson.build:15:5: ERROR: Function does not take positional arguments.
2021-11-06 11:13:07 +01:00
dc7e84810b dbus: Hint that maybe squeekboard is running
It seems that is Squeekboard is already running, the next instance will not fail to acquire a bus name, but instead lose it immediately. This message has been reported by users who experiment with Squeekboard for the first time, so let's make it easier for them to find the solution without having to reach out.
2021-10-31 14:39:43 +00:00
9f8df6f8cb armenian layout also added to meson.build etc. 2021-10-26 04:39:53 +04:00
ef22432583 armenian typewriter and phonetic keyboards. 2021-10-26 04:00:32 +04:00
dcz
fc411d680b Merge branch 'guide' into 'master'
readme: Mention the layout guide

See merge request World/Phosh/squeekboard!476
2021-09-11 07:54:40 +00:00
a74116a72f readme: Mention the layout guide
Hopefully this will cause the number of people asking questions answered there lower.
2021-08-30 10:10:05 +00:00
dcz
fdb288c836 Merge branch 'version' into 'master'
build: Fix "any" dependency versioning

Closes #291

See merge request World/Phosh/squeekboard!474
2021-08-27 10:40:14 +00:00
9cd56185c5 build: Fix "any" dependency versioning
The version="" syntax is rejected with Rust 1.54, so change that to "*".
2021-08-23 14:53:51 +00:00
dcz
1f91cf00a4 Merge branch 'master' into 'master'
Add documentation about compositors

See merge request World/Phosh/squeekboard!473
2021-08-20 11:03:29 +00:00
faccd32316 Add documentation about compositors 2021-08-20 11:03:29 +00:00
82c320a075 Merge branch 'release' into HEAD 2021-08-19 12:22:12 +00:00
5db16f63ea Merge remote-tracking branch 'petrisch/master' into HEAD 2021-08-19 11:58:17 +00:00
135403d878 Merge remote-tracking branch 'gnome/master' into HEAD 2021-08-19 11:29:44 +00:00
dcz
393c521216 Merge branch 'update-protocols' into 'master'
Update text input and input method protocols

See merge request World/Phosh/squeekboard!472
2021-08-18 10:50:43 +00:00
b5046d6cd3 Update zwp_input_method_v2 2021-08-13 08:36:33 -07:00
c31e10fc90 Update zwp_text_input_v3 (comment changes only) 2021-08-13 08:36:09 -07:00
d629542ce2 Merge branch 'update-entry-py-filepath' into 'master'
Update entry.py file path in readme

See merge request World/Phosh/squeekboard!470
2021-08-11 07:08:38 +00:00
e5984ed562 Update entry.py file path in readme 2021-08-10 15:53:28 -07:00
39c004ecfc Merge branch 'ci' into 'master'
Fix gitlab CI

See merge request World/Phosh/squeekboard!471
2021-08-07 09:15:53 +00:00
31f8e4e49f gitlab-ci: Drop build for outdated distributions 2021-08-07 10:56:39 +02:00
2c662e0630 gitlab-ci: Adjust CI tags
This makes it build on GNOME infra
2021-08-07 10:54:27 +02:00
c641035b1a Update tutorial.md to clarify steps in creating a custom layout 2021-07-20 20:00:42 +00:00
cce1f6b817 Added ch_wide 2021-06-27 19:04:07 +02:00
4efe57cbb4 Merge branch 'layersurface_duplicate' into 'master'
layersurface: avoid duplicate assignment

See merge request Librem5/squeekboard!467
2021-06-18 15:49:31 +00:00
19e22418bd layersurface: avoid duplicate assignment 2021-06-18 17:29:02 +02:00
6409ff3748 Introducing ch+de layout and modified ch.yaml fallback
Autor:           Patrick Jörg <patrickjoerg@gmx.ch>
2021-06-08 18:48:38 +00:00
e073434781 Introduce Swiss German keyboard layout 2021-06-08 18:29:07 +00:00
83942c27b8 Merge branch 'error-on-no-layer-shell' into 'master'
Show error when compositor doesn't support Layer Shell

Closes #284

See merge request Librem5/squeekboard!466
2021-06-05 16:21:30 +00:00
29ef4f5bed Merge branch 'keyboard-layout-bulgarian-bds' into 'master'
Add Bulgarian BDS layout

See merge request Librem5/squeekboard!464
2021-06-05 16:20:39 +00:00
9eb397151f Show error when Layer Shell is not supported 2021-06-03 11:39:45 -07:00
3a1ea69006 Translate more layout names in Bulgarian 2021-05-27 18:30:54 +03:00