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

Issue 4368056: Refine RequestName code and fix make dpkg errors. (Closed)

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

Description

Refine RequestName code and fix make dpkg errors. BUG=none TEST=Linux Desktop

Patch Set 1 #

Patch Set 2 : Update #

Patch Set 3 : Update #

Patch Set 4 : Update #

Total comments: 8

Patch Set 5 : Update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -236 lines) Patch
M bus/connection.h View 1 chunk +0 lines, -9 lines 0 comments Download
M bus/connection.c View 3 chunks +0 lines, -11 lines 0 comments Download
M bus/dbusimpl.c View 1 2 3 4 16 chunks +161 lines, -160 lines 0 comments Download
M bus/ibusimpl.c View 1 chunk +1 line, -2 lines 0 comments Download
M debian/libibus-1.0-0.symbols View 1 2 5 chunks +16 lines, -0 lines 0 comments Download
M ibus/common.py View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M src/ibusutil.h View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M src/ibusutil.c View 1 2 1 chunk +0 lines, -35 lines 0 comments Download
M ui/gtk/Makefile.am View 1 chunk +1 line, -1 line 0 comments Download
M ui/gtk/main.py View 1 2 3 3 chunks +1 line, -8 lines 0 comments Download

Messages

Total messages: 5
Peng
This CL is based on CL http://codereview.appspot.com/4279042/
13 years ago (2011-04-07 19:30:46 UTC) #1
fujiwara
I tested the patch. http://codereview.appspot.com/4368056/diff/2003/bus/dbusimpl.c File bus/dbusimpl.c (right): http://codereview.appspot.com/4368056/diff/2003/bus/dbusimpl.c#newcode1026 bus/dbusimpl.c:1026: bus_name_service_set_primary_owner (service, owner, dbus); In ...
13 years ago (2011-04-08 06:47:52 UTC) #2
fujiwara
http://codereview.appspot.com/4368056/diff/2003/ui/gtk/main.py#oldcode59 If you remove self.__bus.add_match(), don't you also have to remove original match rule? https://github.com/ibus/ibus/blob/master/ui/gtk/main.py#L47
13 years ago (2011-04-08 07:04:36 UTC) #3
fujiwara
On 2011/04/08 06:47:52, fujiwara wrote: > http://codereview.appspot.com/4368056/diff/2003/ui/gtk/main.py#oldcode59 > ui/gtk/main.py:59: member='NameAcquired'") > I tested this patch ...
13 years ago (2011-04-08 07:23:22 UTC) #4
Peng
13 years ago (2011-04-08 13:38:57 UTC) #5
http://codereview.appspot.com/4368056/diff/2003/bus/dbusimpl.c
File bus/dbusimpl.c (right):

http://codereview.appspot.com/4368056/diff/2003/bus/dbusimpl.c#newcode1026
bus/dbusimpl.c:1026: bus_name_service_set_primary_owner (service, owner, dbus);
On 2011/04/08 06:47:52, fujiwara wrote:
> In my patch, if the previous primary_owner->do_not_queue == 0, the
primary_owner
> will be moved to the last in service->owners , and if
> primary_owner->do_not_queue != 0, the primary_owner will be deleted.
> It was copied from dbus source code.

Done.

http://codereview.appspot.com/4368056/diff/2003/bus/dbusimpl.c#newcode1451
bus/dbusimpl.c:1451: * bus_name_service_remove_owner() is called, the owner is
removed
On 2011/04/08 06:47:52, fujiwara wrote:
> Remove the line of 'GSList *owners = NULL;'
> Probably you could set CFLAGS='-Wall'.

Done.

http://codereview.appspot.com/4368056/diff/2003/bus/dbusimpl.c#newcode1470
bus/dbusimpl.c:1470: g_hash_table_remove (dbus->names, service->name);
On 2011/04/08 06:47:52, fujiwara wrote:
> In my patch, if service->owners == NULL, the names->data was removed in names.
> Don't you have to remove it?

The names is from bus_connection_get_names(). I think we do not need free it.
BusConnection will free it by self.

http://codereview.appspot.com/4368056/diff/2003/ui/gtk/main.py
File ui/gtk/main.py (left):

http://codereview.appspot.com/4368056/diff/2003/ui/gtk/main.py#oldcode59
ui/gtk/main.py:59: member='NameAcquired'")
On 2011/04/08 06:47:52, fujiwara wrote:
> I tested this patch but this way doesn't resolve my problem.
> http://fujiwara.fedorapeople.org/ibus/20110404/double_name_acquired.png
> The orignal bus of ibus-ui-gtk also receives the NameAcquired from another
bus.
> 
> Yesterday I thought destination='" + self.__bus.get_name() + '"' in the
argument
> of self.__bus.add_match() but it also doesn't my problem...

Are you sure you are using updated panel. It fixes the problem on my box.
Sign in to reply to this message.

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