da7230e723
po: Add desktop file to translatable files
2021-12-05 21:06:40 +01:00
e91f6419fb
data: Make generic name truly generic
...
And mention that it's an on screen keyboard which is the more widely
used term in end user facing string.
2021-12-05 21:06:40 +01:00
16dd4f9753
server-context-servide: Don't translate application name
2021-12-05 21:04:43 +01:00
b41aedabbf
eekboard-context-service: Don't translate property names
...
No need to bother translators with this.
2021-12-05 21:04:43 +01:00
5054f4c9de
Merge branch 'pin-keyboard' into 'master'
...
Use special pin keyboard
See merge request World/Phosh/squeekboard!492
2021-12-05 18:23:35 +00:00
6eb3914ab3
Merge branch 'po' into 'master'
...
Add initial po support
Closes #315
See merge request World/Phosh/squeekboard!497
2021-12-05 18:02:55 +00:00
0c4d3e5450
debian: Install translations
2021-12-05 18:14:39 +01:00
9d97fa4d29
pin: Use less margin
...
Introduce a common.css so styles don't deviate unintentionally between
the different themes. Way more stuff can be moved here once this is in.
2021-12-05 17:34:40 +01:00
321dadba34
renderer: Set style class based on input purpose
2021-12-05 17:34:40 +01:00
4903f3d1a0
layout: Keep content purpose around
...
This allows to add proper CSS style classes based on that
2021-12-05 17:31:12 +01:00
3513bf8de4
Use special pin keyboard
...
This helps muscle memory
2021-12-05 17:31:12 +01:00
5f40c31cab
layout: Drop trailing whitespace
...
Otherwise sane editor setup is basically impossible since
we want to trim that by default (and not manually like here)
in the future.
2021-12-05 17:31:12 +01:00
956377fd2f
Merge branch 'input-purpose-toggle' into 'master'
...
Honor input-purpose only changes
Closes #311
See merge request World/Phosh/squeekboard!493
2021-12-05 14:33:54 +00:00
3306907008
Revert "gresources: Drop popup.ui"
...
This reverts commit fdcef4aa88 .
2021-12-04 13:12:48 +01:00
fdcef4aa88
gresources: Drop popup.ui
...
It's unused in the code atm
2021-12-03 19:00:22 +01:00
74f55b30ef
po: Add German translation
2021-12-03 18:59:52 +01:00
d696c9624e
Reuse the unused popover ui file for i18n
...
Since the current code uses a handcoded approach for popup construction
reuse the unused ui file to keep translatable strings. Since UI file in
popover.rs runs through glib the strings get translated.
Future rework will allow us to get rid of this duplication but since the
ui file went unnoticed for so long who could possibly complain.
Closes : #315
2021-12-03 18:58:24 +01:00
964f1da305
Initialize gettext
2021-12-03 18:58:12 +01:00
0a09036979
Merge branch 'de_DE-translation' into 'master'
...
langs: Don't use empty translation file
Closes #313
See merge request World/Phosh/squeekboard!496
2021-12-03 17:30:20 +00:00
73e7908709
langs: Don't use empty translation file
...
This breaks the translation
Closes : #313
2021-12-03 16:57:26 +01:00
06b17907bf
imservice: Invoke eekboard_context_service_set_hint_purpose unconditionally
...
Since eekboard_context_service_set_hint_purpose() checks if the
hint or purpose changed this doesn't cause unwanted layout reloads.
Closes : #311
2021-12-02 09:19:50 +01:00
912fe0b7b7
entry: Add a random text entry field
...
This allows to test the case where the purpose changes but nothing else.
2021-12-02 09:19:50 +01:00
937638c582
entry: Set a margin on the grids
...
Less heavy on the eyes.
2021-12-01 14:40:55 +01:00
894191d3a0
entry: Use a scrolled window
...
This ensures all entries are reachable even with the OSK unfolded
2021-12-01 14:40:55 +01:00
9fbb974ce4
Merge branch 'have-more-fun-developing-squeekboard' into 'master'
...
main: Add debug flags to always show squeekboard on start and to activate GTK inspector
See merge request World/Phosh/squeekboard!485
2021-11-30 14:16:08 +00:00
e989df8b21
Merge branch 'purpose-pin' into 'master'
...
Honor input-purpose PIN
See merge request World/Phosh/squeekboard!491
2021-11-30 13:11:02 +00:00
0d7fab2ef4
Honor input-purpose PIN
...
Otherwise e.g. SIM pins are requested with a numerical keyboard.
2021-11-30 13:29:11 +01:00
f3eeedc92f
Merge branch 'style-check' into 'master'
...
Move style-check to separate script
See merge request World/Phosh/squeekboard!488
2021-11-23 17:53:02 +00:00
dd708456ff
Move style-check to separate script
...
This avoids having to copy out of .gitlab-ci.yml before submitting an MR
to do a style check.
Could become a meson target at some point.
2021-11-23 18:16:36 +01:00
f80faabfb1
Merge branch 'fix-terminal-fr-wide' into 'master'
...
resources: add wide FR terminal keyboard
See merge request World/Phosh/squeekboard!486
2021-11-23 13:58:58 +00:00
f225a34d70
resources: add wide FR terminal keyboard
...
The layout for this keyboard exists, however it isn't present in
`resources.rs`, making it unavailable.
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com >
2021-11-23 14:17:52 +01:00
dce848b3ce
README: Document SQUEEKBOARD_DEBUG environment variable
2021-11-23 12:46:16 +01:00
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
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
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
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
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
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