Getting current input method language

Kaganski Mike via desktop-devel-list <[email protected]>
Newsgroups gmane.comp.gnome.desktop
Message-ID <AM6PR02MB5448E399A70C1EF971496182D6360@AM6PR02MB5448.eurprd02.prod.outlook.com>
Hello!

LibreOffice uses GtkIMContext when processing input events [1]. It needs 
current selected input language to mark text appropriately, e.g. for 
spell check; this currently not implemented in GTK3 backend [2].

GtkIMContext doesn't seem to provide language information. The question 
is: if there is a way (using GtkIMContext or otherwise) to retrieve the 
language information from an input event?

Thank you!

[1] 
https://opengrok.libreoffice.org/xref/core/vcl/unx/gtk3/gtk3gtkframe.cxx?r=ace72553#3946
[2] https://bugs.documentfoundation.org/show_bug.cgi?id=108151

-- 
Best regards,
Mike Kaganski
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.