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

Issue 8112044: Implement embed_preedit_text. (Closed)

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

Description

Implement embed_preedit_text. BUG=http://code.google.com/p/ibus/issues/detail?id=1606

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated with message #2. #

Total comments: 6

Patch Set 3 : Updated with message #4. #

Total comments: 6

Patch Set 4 : Updated with message #6. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+370 lines, -41 lines) Patch
M bus/ibusimpl.c View 1 2 3 7 chunks +269 lines, -41 lines 0 comments Download
M src/ibusbus.h View 1 1 chunk +24 lines, -0 lines 0 comments Download
M src/ibusbus.c View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
M ui/gtk3/panel.vala View 1 4 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 7
fujiwara
Separated CL. Part I. panel.vala will use set_dbus_property.
11 years, 1 month ago (2013-03-28 20:02:19 UTC) #1
Peng
https://codereview.appspot.com/8112044/diff/1/bus/ibusimpl.c File bus/ibusimpl.c (right): https://codereview.appspot.com/8112044/diff/1/bus/ibusimpl.c#newcode182 bus/ibusimpl.c:182: " <method name='EmbedPreeditText'>\n" For the first CL. I think ...
11 years, 1 month ago (2013-03-28 22:08:12 UTC) #2
fujiwara
https://codereview.appspot.com/8112044/diff/1/bus/ibusimpl.c File bus/ibusimpl.c (right): https://codereview.appspot.com/8112044/diff/1/bus/ibusimpl.c#newcode182 bus/ibusimpl.c:182: " <method name='EmbedPreeditText'>\n" On 2013/03/28 22:08:12, Peng wrote: > ...
11 years, 1 month ago (2013-03-29 01:54:43 UTC) #3
Peng
https://codereview.appspot.com/8112044/diff/5001/bus/ibusimpl.c File bus/ibusimpl.c (right): https://codereview.appspot.com/8112044/diff/5001/bus/ibusimpl.c#newcode1350 bus/ibusimpl.c:1350: ibus->embed_preedit_text = g_variant_get_boolean (value); Please emit PropertiesChanged signal. check ...
11 years, 1 month ago (2013-03-29 03:24:08 UTC) #4
fujiwara
https://codereview.appspot.com/8112044/diff/5001/bus/ibusimpl.c File bus/ibusimpl.c (right): https://codereview.appspot.com/8112044/diff/5001/bus/ibusimpl.c#newcode1350 bus/ibusimpl.c:1350: ibus->embed_preedit_text = g_variant_get_boolean (value); On 2013/03/29 03:24:08, Peng wrote: ...
11 years, 1 month ago (2013-03-29 13:50:53 UTC) #5
Peng
LGTM with several comments https://codereview.appspot.com/8112044/diff/14001/bus/ibusimpl.c File bus/ibusimpl.c (right): https://codereview.appspot.com/8112044/diff/14001/bus/ibusimpl.c#newcode1464 bus/ibusimpl.c:1464: g_return_val_if_reached (NULL); Maybe print some ...
11 years ago (2013-04-27 01:31:28 UTC) #6
fujiwara
11 years ago (2013-04-30 03:08:31 UTC) #7
https://codereview.appspot.com/8112044/diff/14001/bus/ibusimpl.c
File bus/ibusimpl.c (right):

https://codereview.appspot.com/8112044/diff/14001/bus/ibusimpl.c#newcode1464
bus/ibusimpl.c:1464: g_return_val_if_reached (NULL);
On 2013/04/27 01:31:28, Peng wrote:
> Maybe print some more useful information here.
> like property_name 

OK, I used g_warning.

https://codereview.appspot.com/8112044/diff/14001/src/ibusbus.c
File src/ibusbus.c (right):

https://codereview.appspot.com/8112044/diff/14001/src/ibusbus.c#newcode2116
src/ibusbus.c:2116: DBUS_INTERFACE_PROPERTIES,
On 2013/04/27 01:31:28, Peng wrote:
> Maybe using "org.freedesktop.DBus.Properties" directly is better?

Done.

https://codereview.appspot.com/8112044/diff/14001/ui/gtk3/panel.vala
File ui/gtk3/panel.vala (right):

https://codereview.appspot.com/8112044/diff/14001/ui/gtk3/panel.vala#newcode286
ui/gtk3/panel.vala:286: Variant var_embed_preedit = variant;
On 2013/04/27 01:31:28, Peng wrote:
> why not use variant directly?

I replied in the previous comment:
If I use variant directly, the following build error is output:

panel.vala:302.13-302.73: error: Invalid assignment from owned expression to
unowned variable
            variant = m_config.get_value("general", "embed_preedit_text");
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

So that line assigns unowned value to owned value.
Sign in to reply to this message.

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