IME and GTK Input Method Contexts



Hi,
Is there a way to find out if an IME is active or not, within a gtk application.
I tried sending key events to the GtkIMContext using
gtk_im_context_filter_keypress. This seems to be returning true, even
if no ime is active.


What i want to achieve is that if no IME is active, i want to handle
the keypress following my logic, else i want the ime to handle it.
So i did a
if(gtk_im_context_filter_keypress(sIMContext, event))
  //do minor logic, remaining logic in the commit and preedit_changed callback
else
  //process event


The problem i am facing is that gtk_im_context_filter_keypress is
always returning true.


Thanks,
aniket


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