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

Issue 6501080: gtk3: Call XIGrabKeycode directly from Vala (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by Daiki Ueno
Modified:
11 years, 7 months ago
Reviewers:
shawn.p.huang
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

gtk3: Call XIGrabKeycode directly from Vala Port the logic of grabkeycode.c into Vala. This will make it easier to implement XI2 GenericEvent handling in KeybindingManager. BUG=none

Patch Set 1 #

Patch Set 2 : remove unused "X" namespace #

Patch Set 3 : remove yet more unnecessary bindings #

Total comments: 12

Patch Set 4 : rename external-libs.vapi to xi.vapi; simplify get_grab_modifiers() #

Total comments: 4

Patch Set 5 : omit ignored_modifiers arg from get_grab_modifiers(); use array instead of bit mask for ignored_mod… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -114 lines) Patch
M bindings/vala/Makefile.am View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A bindings/vala/xi.vapi View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
M ui/gtk3/Makefile.am View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
D ui/gtk3/grabkeycode.c View 1 chunk +0 lines, -105 lines 0 comments Download
M ui/gtk3/keybindingmanager.vala View 1 2 3 4 2 chunks +75 lines, -8 lines 0 comments Download

Messages

Total messages: 9
Daiki Ueno
Another refactoring patch. BTW, I'm a bit curious of the code which shows switcher dialog ...
11 years, 7 months ago (2012-09-04 03:26:20 UTC) #1
Peng
https://codereview.appspot.com/6501080/diff/5001/bindings/vala/Makefile.am File bindings/vala/Makefile.am (right): https://codereview.appspot.com/6501080/diff/5001/bindings/vala/Makefile.am#newcode47 bindings/vala/Makefile.am:47: config.vapi \ I also think maybe Config.vapi is better. ...
11 years, 7 months ago (2012-09-04 13:58:06 UTC) #2
Peng
On 2012/09/04 03:26:20, Daiki Ueno wrote: > Another refactoring patch. > > BTW, I'm a ...
11 years, 7 months ago (2012-09-04 14:01:06 UTC) #3
Daiki Ueno
https://codereview.appspot.com/6501080/diff/5001/bindings/vala/Makefile.am File bindings/vala/Makefile.am (right): https://codereview.appspot.com/6501080/diff/5001/bindings/vala/Makefile.am#newcode47 bindings/vala/Makefile.am:47: config.vapi \ On 2012/09/04 13:58:06, Peng wrote: > I ...
11 years, 7 months ago (2012-09-04 14:44:53 UTC) #4
Peng
https://codereview.appspot.com/6501080/diff/5001/bindings/vala/Makefile.am File bindings/vala/Makefile.am (right): https://codereview.appspot.com/6501080/diff/5001/bindings/vala/Makefile.am#newcode47 bindings/vala/Makefile.am:47: config.vapi \ sorry. my misstake. please forget it. On ...
11 years, 7 months ago (2012-09-04 15:07:03 UTC) #5
Daiki Ueno
I think all the issues should be addressed now. Please review again when you have ...
11 years, 7 months ago (2012-09-05 09:14:19 UTC) #6
Peng
lgtm with comments. https://codereview.appspot.com/6501080/diff/3002/ui/gtk3/keybindingmanager.vala File ui/gtk3/keybindingmanager.vala (right): https://codereview.appspot.com/6501080/diff/3002/ui/gtk3/keybindingmanager.vala#newcode217 ui/gtk3/keybindingmanager.vala:217: uint ignored_modifiers = IGNORED_MODIFIERS) { This ...
11 years, 7 months ago (2012-09-05 13:20:29 UTC) #7
Peng
On 2012/09/05 13:20:29, Peng wrote: > lgtm with comments. > > https://codereview.appspot.com/6501080/diff/3002/ui/gtk3/keybindingmanager.vala > File ui/gtk3/keybindingmanager.vala ...
11 years, 7 months ago (2012-09-05 13:22:41 UTC) #8
Daiki Ueno
11 years, 7 months ago (2012-09-06 00:52:10 UTC) #9
I'll open a new CL for the tests later.  Thanks for the review.

https://codereview.appspot.com/6501080/diff/3002/ui/gtk3/keybindingmanager.vala
File ui/gtk3/keybindingmanager.vala (right):

https://codereview.appspot.com/6501080/diff/3002/ui/gtk3/keybindingmanager.va...
ui/gtk3/keybindingmanager.vala:219: for (int i = 0; ignored_modifiers != 0; i++,
ignored_modifiers >>= 1) {
On 2012/09/05 13:20:29, Peng wrote:
> Looks great. BTW, with this logic, I think probably making IGNORED_MODIFIERS
an
> array and enumerating it would be more readable.

So, I removed ignored_modifiers arg and make it local constant array.
Sign in to reply to this message.

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