Comment #6 on issue 1516 by [email protected]: ibus API break. Missing ibus_lookup_table_set_labels()
http://code.google.com/p/ibus/issues/detail?id=1516

A simple equivalent of passing a python list to a function is just passing an array and a length parameters in C.

The gobject-introspection annotation will take care of generating proper gir information.

https://live.gnome.org/GObjectIntrospection/Annotations

Something like:

{{{
/**
 * ibus_lookup_table_set_labels:
 * @table: a #IBusLookupTable
 * @labels: (array length=n_labels) (allow-none): candidate labels
 * @n_labels: number of elements in @labels
 *
 */
void ibus_lookup_table_set_labels (IBusLookupTable *table,
                                   IBusText        *labels,
                                   gint            n_labels)
{
    ....
}

}}}



--
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

回复