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

Issue 4844041: Support selection text retrival. (Closed)

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

Description

Support selection text retrival. This patch enable us to get selection text on client application. Currently only GtkTextView widget can get them in gtk application. BUG=None TEST=manually done.(By gedit text editor)

Patch Set 1 #

Total comments: 16

Patch Set 2 : Selection handling make be same as surrounding text. #

Patch Set 3 : Add argument selection range in surrounding text #

Total comments: 48

Patch Set 4 : Introduce anchor position and fix code styles. #

Total comments: 8

Patch Set 5 : Update python scripts #

Total comments: 6

Patch Set 6 : Update python interface signature. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -46 lines) Patch
M bus/engineproxy.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M bus/engineproxy.c View 1 2 3 4 3 chunks +10 lines, -4 lines 0 comments Download
M bus/inputcontext.c View 1 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download
M client/gtk2/ibusimcontext.c View 1 2 3 4 2 chunks +68 lines, -1 line 0 comments Download
M ibus/engine.py View 1 2 3 4 4 chunks +5 lines, -4 lines 0 comments Download
M ibus/inputcontext.py View 1 2 3 4 3 chunks +7 lines, -4 lines 0 comments Download
M ibus/interface/iengine.py View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ibus/interface/iinputcontext.py View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M src/ibusengine.h View 1 2 3 4 4 chunks +5 lines, -3 lines 0 comments Download
M src/ibusengine.c View 1 2 3 4 11 chunks +34 lines, -12 lines 0 comments Download
M src/ibusinputcontext.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M src/ibusinputcontext.c View 1 2 3 4 5 chunks +10 lines, -5 lines 0 comments Download
M src/ibusmarshalers.list View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21
nona1
Dear Peng and yusuke, I am Seigo Nonaka. I'd like to do a code review ...
12 years, 10 months ago (2011-08-02 03:53:42 UTC) #1
Yusuke Sato
(+ueno-san who implemented GetSurroundingText for ibus) Hi Nona, Thank you for the patch. First, though ...
12 years, 10 months ago (2011-08-02 09:05:56 UTC) #2
Peng
I agree with Yusuke to improve SurroundingText instead of adding new IPC. I also embedded ...
12 years, 10 months ago (2011-08-02 15:04:14 UTC) #3
nona1
Thank you for reviewing! I also agree with Yusuke-san's opinion basically. However I want to ...
12 years, 10 months ago (2011-08-02 18:43:37 UTC) #4
Peng
I don't know the use cases of reconvert very well. For my understanding, the reconvert ...
12 years, 10 months ago (2011-08-02 21:51:21 UTC) #5
nona1
Ah... I think too much to be general. As you mentioned, it is enough to ...
12 years, 10 months ago (2011-08-02 23:17:25 UTC) #6
nona1
I update patch set, but I still have probrems around API designing. (Sorry for long ...
12 years, 10 months ago (2011-08-07 15:58:02 UTC) #7
Peng
On 2011/08/07 15:58:02, nona1 wrote: > I update patch set, but I still have probrems ...
12 years, 10 months ago (2011-08-07 21:11:47 UTC) #8
nona1
> Did you try get the cursor position from GtkTextBuffer directly? I think you > ...
12 years, 10 months ago (2011-08-10 06:46:03 UTC) #9
Yusuke Sato
mostly LG http://codereview.appspot.com/4844041/diff/15001/bus/engineproxy.c File bus/engineproxy.c (right): http://codereview.appspot.com/4844041/diff/15001/bus/engineproxy.c#newcode363 bus/engineproxy.c:363: engine->selection_start_pos = 0; If I understand correctly, ...
12 years, 10 months ago (2011-08-10 12:05:21 UTC) #10
Peng
http://codereview.appspot.com/4844041/diff/15001/bus/engineproxy.c File bus/engineproxy.c (right): http://codereview.appspot.com/4844041/diff/15001/bus/engineproxy.c#newcode1064 bus/engineproxy.c:1064: guint selection_end_pos) IMHO, the cursor_pos should always be end ...
12 years, 10 months ago (2011-08-10 15:24:57 UTC) #11
nona1
http://codereview.appspot.com/4844041/diff/15001/bus/engineproxy.c File bus/engineproxy.c (right): http://codereview.appspot.com/4844041/diff/15001/bus/engineproxy.c#newcode363 bus/engineproxy.c:363: engine->selection_start_pos = 0; On 2011/08/10 12:05:21, Yusuke Sato wrote: ...
12 years, 10 months ago (2011-08-10 17:38:27 UTC) #12
Peng
Please update interfaces in python code too. Hi Daiki Ueno, This CL will modify some ...
12 years, 10 months ago (2011-08-10 18:32:41 UTC) #13
Daiki Ueno
On 2011/08/10 18:32:41, Peng wrote: > This CL will modify some surrounding text related interfaces. ...
12 years, 10 months ago (2011-08-11 01:59:39 UTC) #14
Daiki Ueno
I added a couple of minor comments. https://codereview.appspot.com/4844041/diff/21001/client/gtk2/ibusimcontext.c File client/gtk2/ibusimcontext.c (right): https://codereview.appspot.com/4844041/diff/21001/client/gtk2/ibusimcontext.c#newcode959 client/gtk2/ibusimcontext.c:959: gdk_window_get_user_data (ibusimcontext->client_window, ...
12 years, 10 months ago (2011-08-11 07:38:36 UTC) #15
nona1
Thank you for reviewing! http://codereview.appspot.com/4844041/diff/21001/client/gtk2/ibusimcontext.c File client/gtk2/ibusimcontext.c (right): http://codereview.appspot.com/4844041/diff/21001/client/gtk2/ibusimcontext.c#newcode959 client/gtk2/ibusimcontext.c:959: gdk_window_get_user_data (ibusimcontext->client_window, (gpointer)&widget); Yes, you ...
12 years, 10 months ago (2011-08-11 08:08:17 UTC) #16
nona1
Sorry I wrongly upload with debug code. If you already reviewed, I'm really sorry. Patch ...
12 years, 10 months ago (2011-08-11 08:24:49 UTC) #17
Peng
lgtm with some comments http://codereview.appspot.com/4844041/diff/32001/ibus/interface/iengine.py File ibus/interface/iengine.py (right): http://codereview.appspot.com/4844041/diff/32001/ibus/interface/iengine.py#newcode53 ibus/interface/iengine.py:53: @method(in_signature="vu") update in_signature http://codereview.appspot.com/4844041/diff/32001/ibus/interface/iinputcontext.py File ...
12 years, 10 months ago (2011-08-11 11:09:57 UTC) #18
nona1
Thank you! http://codereview.appspot.com/4844041/diff/32001/ibus/interface/iengine.py File ibus/interface/iengine.py (right): http://codereview.appspot.com/4844041/diff/32001/ibus/interface/iengine.py#newcode53 ibus/interface/iengine.py:53: @method(in_signature="vu") On 2011/08/11 11:09:57, Peng wrote: > ...
12 years, 10 months ago (2011-08-11 11:18:41 UTC) #19
Yusuke Sato
On 2011/08/11 11:18:41, nona1 wrote: > Thank you! > > http://codereview.appspot.com/4844041/diff/32001/ibus/interface/iengine.py > File ibus/interface/iengine.py (right): ...
12 years, 10 months ago (2011-08-11 15:01:30 UTC) #20
Peng
12 years, 10 months ago (2011-08-12 00:58:50 UTC) #21
On 2011/08/11 15:01:30, Yusuke Sato wrote:
> On 2011/08/11 11:18:41, nona1 wrote:
> > Thank you!
> > 
> > http://codereview.appspot.com/4844041/diff/32001/ibus/interface/iengine.py
> > File ibus/interface/iengine.py (right):
> > 
> >
>
http://codereview.appspot.com/4844041/diff/32001/ibus/interface/iengine.py#ne...
> > ibus/interface/iengine.py:53: @method(in_signature="vu")
> > On 2011/08/11 11:09:57, Peng wrote:
> > > update in_signature
> > 
> > Done.
> > 
> >
>
http://codereview.appspot.com/4844041/diff/32001/ibus/interface/iinputcontext.py
> > File ibus/interface/iinputcontext.py (right):
> > 
> >
>
http://codereview.appspot.com/4844041/diff/32001/ibus/interface/iinputcontext...
> > ibus/interface/iinputcontext.py:52: @method(in_signature="vu")
> > On 2011/08/11 11:09:57, Peng wrote:
> > > same
> > 
> > Done.
> 
> LGTM. nice work.

Great work. I have pushed this CL on your behalf. Please close this CL. Thanks.
Sign in to reply to this message.

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