Comment #1 on issue 1690 by [email protected]: get_surrounding_text() can't be called with NULL arguments from python-gi
http://code.google.com/p/ibus/issues/detail?id=1690

Actually, the value of the text parameter does not matter. If you just want to use surrounding text, you could simply call get_surrounding_text without arguments, like:
https://git.fedorahosted.org/cgit/ibus-typing-booster.git/tree/ibus-typing-booster/engine/hunspell_table.py#n1024

Now that surrounding text is enabled by default and used by major IMEs (Mozc, hangul, etc), I agree with removing the need of this initial get_surrounding_text call. I remember someone insisted this because of performance, but there was no real measurement.

--
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/groups/opt_out.

回复