summaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-02-20 06:05:08 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-03-02 09:43:04 +0100
commitb5c1981842402f6fe8d4c02176db923e1955175b (patch)
treecd4584c5c15004515ee9e4244b2b38d0e5725d4e /src/calcurse.h
parent80d882d03ddb7eb5807cba13ee74b389846206d4 (diff)
downloadcalcurse-b5c1981842402f6fe8d4c02176db923e1955175b.tar.gz
calcurse-b5c1981842402f6fe8d4c02176db923e1955175b.zip
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h3
1 files changed, 2 insertions, 1 deletions
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);