Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't use integer type arg of generic structs (Issue#49).

  • Loading branch information...
commit 13f59eba925cd4e84da181dc752b7fbed95b60d8 1 parent 2540ea7
@ueno authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/engine.vala
View
12 src/engine.vala
@@ -410,13 +410,13 @@ class SkkEngine : IBus.Engine {
return false;
}
- struct Entry<K,V> {
- K key;
- V value;
+ struct KeyEntry {
+ uint keyval;
+ uint modifiers;
}
// Keys should always be reported as handled (a8ffece4 and caf9f944)
- static const Entry<uint,uint>[] IGNORE_KEYVALS = {
+ static const KeyEntry[] IGNORE_KEYS = {
{ IBus.j, IBus.ModifierType.CONTROL_MASK }
};
@@ -449,8 +449,8 @@ class SkkEngine : IBus.Engine {
var text = new IBus.Text.from_string (output);
commit_text (text);
}
- foreach (var entry in IGNORE_KEYVALS) {
- if (entry.key == keyval && entry.value == modifiers) {
+ foreach (var entry in IGNORE_KEYS) {
+ if (entry.keyval == keyval && entry.modifiers == modifiers) {
return true;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.