Re: Changing the default input method




How can I change the default GTK+ input method used by a system? I've
seen mention of the GTK_IM_MODULE enviroment variable, but it does not
seem to have any effect.


In gtkimcontextsimple.c there is a variable "global_context_id" which
maintains the input method of gtk. Setting that to "myinputmethod"
will help you have it as default. But do this after initialisation of
the module, else it will give a undefined refrence to you input
method.

For instance, I've tried
export GTK_IM_MODULE="myinputmethod";gtk-demo

Also, is there any way to change this at runtime, with a C function
call?

--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com



--
Anupama Chandwani

Celunite Soft Technologies
3rd Floor, Business Avenue
Koregaon Park
Pune, MS 411001
INDIA



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]