m = obt_parse_find_node(n->children, "action");
while (m) {
ObActionsAct *action = actions_parse(m);
- if (action) o->actions = g_slist_prepend(o->actions, action);
+ if (action) o->actions = g_slist_append(o->actions, action);
m = obt_parse_find_node(m->next, "action");
}
}
{
if (e->type == KeyPress) {
/* Escape cancels no matter what */
- if (e->xkey.keycode == ob_keycode(OB_KEY_ESCAPE)) {
+ if (ob_keycode_match(e->xkey.keycode, OB_KEY_ESCAPE)) {
end_cycle(TRUE, e->xkey.state, options);
return FALSE;
}
/* There were no modifiers and they pressed enter */
- else if (e->xkey.keycode == ob_keycode(OB_KEY_RETURN) &&
+ else if (ob_keycode_match(e->xkey.keycode, OB_KEY_RETURN) &&
!initial_state)
{
end_cycle(FALSE, e->xkey.state, options);