Review URL: https://codereview.appspot.com/6909049
if (lang != null &&
lang.ascii_ncasecmp("pt_br", "pt_br".length) == 0) {
IBus.EngineSimple? simple = (IBus.EngineSimple ?) engine;
- simple.add_table((uint16[]) cedilla_compose_seqs,
+ simple.add_table(cedilla_compose_seqs,
4,
cedilla_compose_seqs.length / (4 + 2));
}
void
ibus_engine_simple_add_table (IBusEngineSimple *simple,
- guint16 *data,
+ const guint16 *data,
gint max_seq_len,
gint n_seqs)
{
/**
* ibus_engine_simple_add_table:
* @simple: An IBusEngineSimple.
- * @data: (transfer container) (element-type guint16) (array):
- * The table.
+ * @data: (element-type guint16) (array): The table which must be available
+ * during the whole life of the simple engine.
* @max_seq_len: Maximum length of a swquence in the table (cannot be greater
* than %IBUS_MAX_COMPOSE_LEN)
*
* symbol fields. (Values beyond the length of the sequence should be zero.)
*/
void ibus_engine_simple_add_table (IBusEngineSimple *simple,
- guint16 *data,
+ const guint16 *data,
gint max_seq_len,
gint n_seqs);