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

Issue 4648050: Add icon_symbol property in IBusEngineDesc. (Closed)

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

Description

Add icon_symbol property in IBusEngineDesc. TEST=Linux desktop

Patch Set 1 #

Total comments: 3

Patch Set 2 : Changed icon_symbol to symbol and readonly. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -6 lines) Patch
M ibus/enginedesc.py View 1 6 chunks +9 lines, -6 lines 0 comments Download
M src/ibusenginedesc.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M src/ibusenginedesc.c View 1 16 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 13
fujiwara
13 years ago (2011-06-22 11:11:25 UTC) #1
Peng
On 2011/06/22 11:11:25, fujiwara wrote: What's is icon symbol for? Could you give some detail? ...
13 years ago (2011-06-22 13:50:28 UTC) #2
fujiwara
On 2011/06/22 13:50:28, Peng wrote: > What's is icon symbol for? Could you give some ...
13 years ago (2011-06-23 02:21:37 UTC) #3
Peng
On 2011/06/23 02:21:37, fujiwara wrote: > On 2011/06/22 13:50:28, Peng wrote: > > What's is ...
13 years ago (2011-06-23 03:29:58 UTC) #4
fujiwara
On 2011/06/23 03:29:58, Peng wrote: > I think use such kind of icon may confuse ...
13 years ago (2011-06-23 03:54:10 UTC) #5
Peng
https://codereview.appspot.com/4648050/diff/1/bus/engineproxy.c File bus/engineproxy.c (right): https://codereview.appspot.com/4648050/diff/1/bus/engineproxy.c#newcode594 bus/engineproxy.c:594: if (g_strcmp0 (signal_name, "SetIconSymbol") == 0) { Is it ...
13 years ago (2011-06-23 04:02:40 UTC) #6
fujiwara
On 2011/06/23 04:02:40, Peng wrote: > https://codereview.appspot.com/4648050/diff/1/bus/engineproxy.c > File bus/engineproxy.c (right): > > https://codereview.appspot.com/4648050/diff/1/bus/engineproxy.c#newcode594 > ...
13 years ago (2011-06-23 04:35:39 UTC) #7
Peng
On 2011/06/23 04:35:39, fujiwara wrote: > On 2011/06/23 04:02:40, Peng wrote: > > https://codereview.appspot.com/4648050/diff/1/bus/engineproxy.c > ...
13 years ago (2011-06-23 19:57:29 UTC) #8
fujiwara
On 2011/06/23 19:57:29, Peng wrote: > On 2011/06/23 04:35:39, fujiwara wrote: > > On 2011/06/23 ...
13 years ago (2011-06-24 05:28:08 UTC) #9
Peng
On 2011/06/24 05:28:08, fujiwara wrote: > On 2011/06/23 19:57:29, Peng wrote: > > On 2011/06/23 ...
13 years ago (2011-06-28 04:18:24 UTC) #10
fujiwara
OK, I updated the patch. On 2011/06/28 04:18:24, Peng wrote: > I am not sure ...
13 years ago (2011-06-29 08:28:40 UTC) #11
Peng
On 2011/06/29 08:28:40, fujiwara wrote: > OK, I updated the patch. > > On 2011/06/28 ...
12 years, 12 months ago (2011-07-03 19:28:10 UTC) #12
Peng
12 years, 12 months ago (2011-07-04 17:38:15 UTC) #13
On 2011/07/03 19:28:10, Peng wrote:
> On 2011/06/29 08:28:40, fujiwara wrote:
> > OK, I updated the patch.
> > 
> > On 2011/06/28 04:18:24, Peng wrote:
> > > I am not sure if it is a good idea to allow engine change the symbol and
use
> > it
> > > for internal input modes. So I think it is better to remove SetIconSymbol
in
> > > this CL. If we need show internal input mode in panel, I think we should
add
> > > another icon for it.
> > 
> > After I talked off line, it seems the concern might be the definition of the
> > engine description.
> > 
> > > I am not sure if it is a good idea to allow engine change the 
> > > symbol dynamically. Because it is designed for indicating the 
> > > engine, not for the internal input mode
> > 
> > We also talked if ibus.Property would have the key of "InputMode" about the
> > input mode.
> > I removed the set_icon_symbol function here and will think about
ibus.Property
> > later.
> > 
> > > What's the the problem for just add a integer? The problem of dict should
be
> > > same. :)
> > 
> > IBus serialize/deserialize depends on the order so if the order is changed,
> ibus
> > crashes. using dict could avoid this issue since other components could not
> get
> > the property if the name is not known and dict doesn't have the order.
> > Using dict could avoid the issue because it checks g_strcmp0(key, "symbol")
> and
> > if it's not matched, the value is simply ignored.
> > 
> > Finally we agreed we will not change the serialized order for the
> compatibility.
> > I removed the dict here.
> 
> LGTM

I applied this CL. Please code it. Thanks.
Sign in to reply to this message.

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