add exit handler
This commit is contained in:
@@ -78,6 +78,8 @@ static SCM install_handler (SCM key, SCM proc)
|
||||
context.layout_demand_handler = proc;
|
||||
else if ( scm_is_eq(scm_from_utf8_symbol("user-command"), key) == 1)
|
||||
context.user_command_handler = proc;
|
||||
else if ( scm_is_eq(scm_from_utf8_symbol("exit"), key) == 1)
|
||||
context.exit_handler = proc;
|
||||
else if ( scm_is_true(scm_string_prefix_p(scm_from_utf8_string("idle:"), scm_symbol_to_string(key),
|
||||
scm_from_int(0), scm_from_int(5),
|
||||
scm_from_int(0), scm_string_length(scm_symbol_to_string(key)))) == 1 )
|
||||
|
||||
Reference in New Issue
Block a user