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

Issue 4446051: Use g_initable_new to create BusFactoryProxy. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by Peng
Modified:
13 years ago
Reviewers:
Yusuke Sato
CC:
satorux
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

Use g_initable_new to create BusFactoryProxy. BUG=none TEST=Linux desktop

Patch Set 1 #

Total comments: 3

Patch Set 2 : Updat6e #

Patch Set 3 : Update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -10 lines) Patch
M bus/factoryproxy.c View 1 2 chunks +15 lines, -10 lines 0 comments Download

Messages

Total messages: 4
Peng
13 years ago (2011-04-18 14:45:00 UTC) #1
Yusuke Sato
LGTM with one nit below: http://codereview.appspot.com/4446051/diff/1/bus/factoryproxy.c File bus/factoryproxy.c (right): http://codereview.appspot.com/4446051/diff/1/bus/factoryproxy.c#newcode66 bus/factoryproxy.c:66: factory = (BusFactoryProxy *) ...
13 years ago (2011-04-18 14:51:29 UTC) #2
Peng
http://codereview.appspot.com/4446051/diff/1/bus/factoryproxy.c File bus/factoryproxy.c (right): http://codereview.appspot.com/4446051/diff/1/bus/factoryproxy.c#newcode66 bus/factoryproxy.c:66: factory = (BusFactoryProxy *) g_initable_new ( On 2011/04/18 14:51:29, ...
13 years ago (2011-04-18 15:17:50 UTC) #3
Yusuke Sato
13 years ago (2011-04-18 15:20:03 UTC) #4
http://codereview.appspot.com/4446051/diff/1/bus/factoryproxy.c
File bus/factoryproxy.c (right):

http://codereview.appspot.com/4446051/diff/1/bus/factoryproxy.c#newcode66
bus/factoryproxy.c:66: factory = (BusFactoryProxy *) g_initable_new (
Thanks for the explanation. Could you copy&paste your comment to the code?

On 2011/04/18 15:17:50, Peng wrote:
> On 2011/04/18 14:51:29, Yusuke Sato wrote:
> > I'd like to know when factory can be NULL. Can you add some comments?
> 
> It is unlikely. But in some case, the connection could be closed during
creating
> the proxy object. And then g_initable_new will return NULL.
> 
> https://github.com/ibus/ibus/blob/master/src/ibusproxy.c#L162
Sign in to reply to this message.

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