Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1007)

Issue 4276082: Support surrounding-text retrieval. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by Daiki Ueno
Modified:
13 years, 7 months ago
Reviewers:
shawn.p.huang
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

Support surrounding-text retrieval. Unlike the GtkIMContext API, IBus automatically retrieves surrounding-text when certain events occurred to the client ("before filter_keypress", for example). This makes the engine API simpler but causes periodical emission of D-Bus signals for updating surrounding-text information, which is unwanted for typical engines. For this reason, the surrounding-text support is currently disabled by default. To enable it, pass --enable-surrounding-text to configure. Also, even surrounding-text support is compiled in, IBus does not start polling until an engine requests surrounding-text using ibus_engine_get_surrounding_text(). To make the function work for the first time, clients should retrieve initial surrounding-text when the engine is enabled (see ibus_im_context_focus_in() and _ibus_context_enabled_cb() in client/gtk2/ibusimcontext.c). BUG=Issue#778 TEST=manual

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase from the current git master; use gtk-doc markup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+552 lines, -15 lines) Patch
M bus/engineproxy.h View 1 chunk +11 lines, -0 lines 0 comments Download
M bus/engineproxy.c View 8 chunks +56 lines, -0 lines 0 comments Download
M bus/inputcontext.c View 5 chunks +56 lines, -0 lines 0 comments Download
M client/gtk2/ibusimcontext.c View 15 chunks +101 lines, -12 lines 0 comments Download
configure.ac View 1 2 chunks +14 lines, -0 lines 0 comments Download
M ibus/engine.py View 2 chunks +6 lines, -0 lines 0 comments Download
M ibus/interface/iengine.py View 1 chunk +3 lines, -0 lines 0 comments Download
M ibus/interface/iinputcontext.py View 1 chunk +3 lines, -0 lines 0 comments Download
M src/ibusengine.h View 2 chunks +20 lines, -1 line 0 comments Download
M src/ibusengine.c View 11 chunks +153 lines, -0 lines 0 comments Download
M src/ibusinputcontext.h View 1 2 chunks +22 lines, -0 lines 0 comments Download
M src/ibusinputcontext.c View 7 chunks +106 lines, -2 lines 0 comments Download
M src/ibusmarshalers.list View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5
Daiki Ueno
Hi, I'm trying to land the surrounding-text patch, since it has been tested in Fedora ...
13 years, 8 months ago (2011-03-29 03:06:30 UTC) #1
Peng
I apply this CL failed. Please rebase it to HEAD of master branch. Thanks. On ...
13 years, 7 months ago (2011-04-04 19:21:16 UTC) #2
Peng
http://codereview.appspot.com/4276082/diff/1/src/ibusinputcontext.h File src/ibusinputcontext.h (right): http://codereview.appspot.com/4276082/diff/1/src/ibusinputcontext.h#newcode466 src/ibusinputcontext.h:466: * @context: An IBusInputContext. Please use #IBusInputContext. http://codereview.appspot.com/4276082/diff/1/src/ibusinputcontext.h#newcode467 src/ibusinputcontext.h:467: ...
13 years, 7 months ago (2011-04-04 19:25:39 UTC) #3
Daiki Ueno
Thanks for looking at this. Uploaded a new CL with fixes.
13 years, 7 months ago (2011-04-05 06:22:39 UTC) #4
Daiki Ueno
13 years, 7 months ago (2011-04-06 02:02:54 UTC) #5
On 2011/04/05 06:22:39, Daiki Ueno wrote:
> Thanks for looking at this.  Uploaded a new CL with fixes.

I saw that you committed the patch into the git, thanks.
Closing.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b