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

Issue 4613043: Simplify surrounding-text initialization. (Closed)

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

Description

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.

Patch Set 1 #

Patch Set 2 : rebase against the current git master #

Total comments: 2

Patch Set 3 : Keep surrounding-text disabled by default in configure.ac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -20 lines) Patch
M client/gtk2/ibusimcontext.c View 8 chunks +9 lines, -14 lines 0 comments Download
M src/ibusengine.h View 1 chunk +7 lines, -2 lines 0 comments Download
M src/ibusengine.c View 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 10
Daiki Ueno
In Fedora, we have applied a patch to enable/disable surrounding-text using component XML: http://pkgs.fedoraproject.org/gitweb/?p=ibus.git;a=blob;h=2bde53cc;hb=HEAD which ...
12 years, 11 months ago (2011-06-14 07:25:16 UTC) #1
Peng
Did you update this CL successfully? It looks like some file are not updated. Please ...
12 years, 11 months ago (2011-06-15 14:16:01 UTC) #2
Daiki Ueno
On 2011/06/15 14:16:01, Peng wrote: > Did you update this CL successfully? It looks like ...
12 years, 11 months ago (2011-06-16 06:43:25 UTC) #3
Peng
I don't know why I can not publish an inline comment in configure.ac for this ...
12 years, 11 months ago (2011-06-16 16:10:36 UTC) #4
Daiki Ueno
https://codereview.appspot.com/4613043/diff/3001/client/gtk2/ibusimcontext.c File client/gtk2/ibusimcontext.c (right): https://codereview.appspot.com/4613043/diff/3001/client/gtk2/ibusimcontext.c#newcode271 client/gtk2/ibusimcontext.c:271: ibus_input_context_needs_surrounding_text (context->ibuscontext)) { On 2011/06/16 16:10:36, Peng wrote: > ...
12 years, 11 months ago (2011-06-17 03:11:03 UTC) #5
Peng
You did not reply the comment for configure.ac.? On 2011/06/17 03:11:03, Daiki Ueno wrote: > ...
12 years, 11 months ago (2011-06-17 03:43:18 UTC) #6
Daiki Ueno
On 2011/06/17 03:43:18, Peng wrote: > You did not reply the comment for configure.ac.? Sorry. ...
12 years, 11 months ago (2011-06-17 03:56:56 UTC) #7
Peng
On 2011/06/17 03:56:56, Daiki Ueno wrote: > On 2011/06/17 03:43:18, Peng wrote: > > You ...
12 years, 11 months ago (2011-06-18 03:52:39 UTC) #8
fujiwara
On 2011/06/14 07:25:16, Daiki Ueno wrote: > In Fedora, we have applied a patch to ...
12 years, 11 months ago (2011-06-20 04:37:32 UTC) #9
fujiwara
12 years, 11 months ago (2011-06-20 04:47:31 UTC) #10
On 2011/06/20 04:37:32, fujiwara wrote:
> On 2011/06/14 07:25:16, Daiki Ueno wrote:
> > In Fedora, we have applied a patch to enable/disable surrounding-text using
> > component XML:
> 
> It seems this does not include the xml patch so _request_surrounding_text()
> always emits "retrieve-surrounding" in focus_in and enabled class methods.
> My understanding is this is the different behavior from Fedora. I'd expected
to
> emit "retrieve-surrounding" in focus_in for the specific engines only.

Ah, OK, I mistook '+' and '-' in _request_surrounding_text() about the 'force'
argument and it looks same with Fedora.
Thanks.
Sign in to reply to this message.

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