summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-08-21 11:14:36 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-08-21 11:14:36 +0800
commitad31ce022214af66889f0700e617f1d2f99c2c5c (patch)
tree8a1206c174c0ea65285b33260535613d29fd2a5c
parent9dc63065ea6b6365eccbb9ba180af4cf4f0a0d7c (diff)
downloadibus-ad31ce022214af66889f0700e617f1d2f99c2c5c.tar.gz
ibus-ad31ce022214af66889f0700e617f1d2f99c2c5c.tar.xz
ibus-ad31ce022214af66889f0700e617f1d2f99c2c5c.zip
Test CreateInputContext's return value.
-rw-r--r--client/x11/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/x11/main.c b/client/x11/main.c
index 8a1c150..c01e6f4 100644
--- a/client/x11/main.c
+++ b/client/x11/main.c
@@ -184,6 +184,8 @@ xim_create_ic (XIMS xims, IMChangeICStruct *call_data)
i = _xim_store_ic_values (x11ic, call_data);
x11ic->ibus_ic = g_strdup (ibus_im_client_create_input_context (_client));
+ g_assert (x11ic->ibus_ic != NULL);
+
g_hash_table_insert (_ibus_ic_table, x11ic->ibus_ic, (gpointer)x11ic);
ibus_im_client_set_use_preedit (_client, x11ic->ibus_ic, FALSE);