reorder argument order
This commit is contained in:
parent
6ed0181a0c
commit
c344180055
2
rose.c
2
rose.c
|
@ -412,7 +412,7 @@ int keypress(void* self, GdkEvent* e, GtkNotebook* notebook)
|
||||||
(void)self;
|
(void)self;
|
||||||
|
|
||||||
for (int i = 0; i < sizeof(keys) / sizeof(keys[0]); i++)
|
for (int i = 0; i < sizeof(keys) / sizeof(keys[0]); i++)
|
||||||
if (e->key.keyval == keys[i].key && (e->key.state == keys[i].mod || keys[i].mod == 0x0))
|
if ((e->key.state == keys[i].mod || keys[i].mod == 0x0) && e->key.keyval == keys[i].key )
|
||||||
return handle_key(keys[i].id, notebook);
|
return handle_key(keys[i].id, notebook);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user