/* typewinsize */ int owl_variable_typewinsize_set(owl_variable *v, int newval) { int rv; rv = owl_variable_int_set_default(v, newval); if (0 == rv) owl_mainpanel_layout_contents(&g.mainpanel); return(rv); }
/* typewinsize */ int owl_variable_typewinsize_set(owl_variable *v, void *newval) { int rv; rv = owl_variable_int_set_default(v, newval); if (0 == rv) owl_function_resize(); return(rv); }
/* note that changing the value of this will clobber * any user setting of this */ int owl_variable_disable_ctrl_d_set(owl_variable *v, void *newval) { if (in_regtest) return owl_variable_int_set_default(v, newval); if (newval && !owl_context_is_startup(owl_global_get_context(&g))) { if (*(int*)newval == 2) { owl_function_command_norv("bindkey editmulti C-d command edit:delete-next-char"); } else if (*(int*)newval == 1) { owl_function_command_norv("bindkey editmulti C-d command editmulti:done-or-delete"); } else { owl_function_command_norv("bindkey editmulti C-d command editmulti:done"); } } return owl_variable_int_set_default(v, newval); }
/* typewinsize */ int owl_variable_typewinsize_set(owl_variable *v, const void *newval) { int rv; rv = owl_variable_int_set_default(v, newval); if (0 == rv) owl_global_set_relayout_pending(&g); return(rv); }