Branch: refs/heads/master
Home: https://github.com/ibus/ibus
Commit: aec97ac090980dfcd7eeef55c1755f6cd3f87a01
https://github.com/ibus/ibus/commit/aec97ac090980dfcd7eeef55c1755f6cd3f87a01
Author: Daiki Ueno <[email protected]>
Date: 2011-06-17 (Fri, 17 Jun 2011)
Changed paths:
M client/gtk2/ibusimcontext.c
M src/ibusengine.c
M src/ibusengine.h
Log Message:
-----------
Simplify surrounding-text initialization.
Currently the immodule tries to retrieve surrounding-text unconditionally
on focus_in and enabled. These calls could be eliminated if engine were
able to proclaim that it will need surrounding-text.
This patch extends ibus_engine_get_surrounding_text() to allow this.
Engines that need surrounding-text are expected to have:
/* Indicate we will use surrounding-text. */
ibus_engine_get_surrounding_text (engine, NULL, NULL);
in their enable() method. This would work because enable() is called before
SetCapabilities DBus call.
BUG=none
TEST=manually with ibus-m17n, with the above change.
Review URL: http://codereview.appspot.com/4613043
Patch from Daiki Ueno <[email protected]>.
--
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