From b5c1981842402f6fe8d4c02176db923e1955175b Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 20 Feb 2012 06:05:08 +0100 Subject: Revamp key bindings display Refactor the logic inside keys_display_bindings_bar() and remove the need to place the "show next page" key binding at the right positions. This used to be a pain to maintain, since we always had to move key bindings around when introducing a new key. Fix this by passing the actual key bindings in an array and using a separate parameter for the "show next page" key binding (which is automatically inserted at the right places from now on). Signed-off-by: Lukas Fleischer --- src/calcurse.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index 16ef558..e475627 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -739,7 +739,8 @@ int keys_action_count_keys (enum key); char *keys_action_firstkey (enum key); char *keys_action_nkey (enum key, int); char *keys_action_allkeys (enum key); -void keys_display_bindings_bar (WINDOW *, struct binding **, int, int); +void keys_display_bindings_bar (WINDOW *, struct binding *[], int, int, + int, struct binding *); void keys_popup_info (enum key); void keys_save_bindings (FILE *); int keys_check_missing_bindings (void); -- cgit v1.2.3-54-g00ecf