On 2012/03/06 20:21:07, Peng wrote: lgtm. Probably I think the following change is also good. --- ibus/ui/gtk3/keybindingmanager.vala.orig +++ ibus/ui/gtk3/keybindingmanager.vala @@ -85,8 +85,6 @@ public class KeybindingManager : GLib.Ob Gdk.ModifierType modifiers; Gtk.accelerator_parse(accelerator, out keysym, out modifiers); - get_primary_modifier(modifiers); - unowned X.Display display = Gdk.x11_get_default_xdisplay(); int keycode = display.keysym_to_keycode(keysym); @@ -147,7 +145,7 @@ public class KeybindingManager : GLib.Ob Gdk.ModifierType.SHIFT_MASK, Gdk.ModifierType.LOCK_MASK }; - foreach (var mask in masks) { + foreach (uint mask in masks) { if ((binding_mask & mask) == mask) return mask; }