keystate: Use keycode

This commit is contained in:
Dorota Czaplejewicz
2019-08-03 12:43:39 +00:00
parent fb93e25833
commit 0b6935e50c
4 changed files with 21 additions and 24 deletions

View File

@ -130,8 +130,8 @@ eek_section_real_create_key (EekSection *self,
EekKey *key = (EekKey*)g_object_new (EEK_TYPE_KEY,
"name", name,
"keycode", keycode,
NULL);
eek_key_set_keycode(key, keycode);
g_return_val_if_fail (key, NULL);
EEK_CONTAINER_GET_CLASS(self)->add_child (EEK_CONTAINER(self),