Store capabilities when ibuscontext is not ready yet.
authorKazuhiro Inaba <kinaba@chromium.org>
Sat, 18 Jun 2011 04:10:36 +0000 (00:10 -0400)
committerPeng Huang <shawn.p.huang@gmail.com>
Sat, 18 Jun 2011 04:10:36 +0000 (00:10 -0400)
commit508f6a11d39860f4fdb005e8a54574a5fba52e9d
treeea27fd8fe4d9c5f5e06b6ccd7857ebaf73ae699e
parentaec97ac090980dfcd7eeef55c1755f6cd3f87a01
Store capabilities when ibuscontext is not ready yet.

Due to the asynchronous creation of contexts, gtk_im_set_use_preedit may
be called before the context is ready. This patch is to
record the change of capability flag and enables to set it
later in _create_input_context_done.

BUG=http://crosbug.com/16500
TEST=ChromeOS Cr-48

Review URL: http://codereview.appspot.com/4635049
Patch from Kazuhiro Inaba <kinaba@chromium.org>.
client/gtk2/ibusimcontext.c