Comment #21 on issue 1264 by [email protected]: Bug with Korean mode
https://code.google.com/p/ibus/issues/detail?id=1264

ibus should commit preedit text when reset. otherwise, reset() is wrong.

Reason:

1. char *XmbResetIC(XIC ic);
http://www.x.org/archive/X11R7.5/doc/man/man3/XwcResetIC.3.html

The return value of XmbResetIC is its current preedit string as a multibyte string. The return value of XwcResetIC is its current preedit string as a wide character string. The return value of Xutf8ResetIC is its current preedit string as an UTF-8 string.

2. gtk_im_context_xim_reset()
https://git.gnome.org/browse/gtk+/tree/modules/input/gtkimcontextxim.c?id=3.14.5#n813
gtk_im_context_xim_reset() commits preedit text when reset() using XmbResetIC()


takao.fujiwara1, What about this ?

static void
ibus_im_context_reset (GtkIMContext *context)
{
    IDEBUG ("%s", __FUNCTION__);

    IBusIMContext *ibusimcontext = IBUS_IM_CONTEXT (context);

    if (ibusimcontext->ibuscontext) {
        if (ibusimcontext->preedit_mode == IBUS_ENGINE_PREEDIT_COMMIT)
        {
            /* TODO: commit preedit text */
        }
        ibus_input_context_reset (ibusimcontext->ibuscontext);
    }
    gtk_im_context_reset (ibusimcontext->slave);
}

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en
--- You received this message because you are subscribed to the Google Groups "ibus-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

回复