From 919a40f5612b5b2ce91284de337da17d6161edad Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 18 Jul 2014 10:25:54 +0200 Subject: Use wins_set_bindings() for the configuration menu Make use of the general key binding context switching implementation for the configuration main menu. Signed-off-by: Lukas Fleischer --- src/calcurse.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index d6dfda2..e593ff0 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -463,7 +463,15 @@ enum key { KEY_LOWER_PRIORITY, NBKEYS, - KEY_UNDEF + KEY_UNDEF, + + /* Non-configurable, context sensitive key bindings. */ + KEY_CONFIGMENU_GENERAL, + KEY_CONFIGMENU_LAYOUT, + KEY_CONFIGMENU_SIDEBAR, + KEY_CONFIGMENU_COLOR, + KEY_CONFIGMENU_NOTIFY, + KEY_CONFIGMENU_KEYS }; #define FLAG_CAL (1 << CAL) @@ -678,7 +686,6 @@ unsigned config_save(void); void custom_init_attr(void); void custom_apply_attr(WINDOW *, int); void custom_remove_attr(WINDOW *, int); -void custom_config_bar(void); void custom_layout_config(void); void custom_sidebar_config(void); void custom_color_config(void); -- cgit v1.2.3-54-g00ecf