how to programmatically change input method

1 message Options
Embed this post
Permalink
scimmy

how to programmatically change input method

Reply Threaded More More options
Print post
Permalink
Hello everybody,

I'm stuck on a problem that looks rather easy to resolve though:

I have got some gtkmm textboxes to input information in different languages (european, zh-pinyin and chinese using pinyin input method). To avoid having to switch the input method using the mouse or hotkeys (both work) every time the user clicks into a textbox to input new text, I'd like to set the input method automatically (maybe by setting an input method property or something).

More generally put, is there any documentation on the API, its interfaces and how to change scim settings programmatically? Or maybe is there just a way to change some information in a config file or some commands like im-switch to do these things?

Any hints are appreciated!