loading of additional compose sequences is broken
Steps to reproduce
- add additional compose sequences to ~/.config/gtk-3.0/Compose
The easiest way to demonstrate the problem is to add the following line (which contains more keys than the current implementation can handle)
<Multi_key> <s> <e> <q> <t> <o> <o> <l> <o> <n> <g> : "!"
start any gtk-based application with an entry or text widget, e.g. gedit or the examples in the "Entry" or "Text View" category of gtk3-demo
you should see the following warning
Gtk-WARNING **: 15:19:37.966: The max number of sequences is 7: <Multi_key> <s> <e> <q> <t> <o> <o> <l> <o> <n> <g> : "!"
warning doesn't show
warning is shown
- gtk 3.24.14
- Debian unstable
It looks like this has been broken for some time, I went back as far as 3.22.11 (Debian stretch) - all broken.
The code to parse additional compose sequences from ~/.config/gtk-3.0/Compose is still in
gtk/gtkimcontextsimple.c. It is called (as
but running e.g. gedit under the debugger, I see that the latter function gets never called.
If I move the call of
gtk_im_context_simple_init, I can add
compose key sequences.