From 42c486d30d8e6f82d27651e19029e332af86cba3 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 12 Jun 2012 22:42:28 +0200 Subject: Rename displacement enumeration elements * Rename "LEFT" to "DAY_PREV", "RIGHT" to "DAY_NEXT", "UP" to "WEEK_PREV" and "DOWN" to "WEEK_NEXT" to reflect the semantics of these operations. Remove the unneeded "MOVES" element. * Reorder code to improve consistency. Signed-off-by: Lukas Fleischer --- src/help.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/help.c') diff --git a/src/help.c b/src/help.c index 69bb79d..2cae3cc 100644 --- a/src/help.c +++ b/src/help.c @@ -116,10 +116,10 @@ help_write_pad(struct window *win, char *title, char *text, enum key action) case KEY_GENERIC_REDRAW: case KEY_GENERIC_ADD_APPT: case KEY_GENERIC_ADD_TODO: - case KEY_GENERIC_NEXT_DAY: case KEY_GENERIC_PREV_DAY: - case KEY_GENERIC_NEXT_WEEK: + case KEY_GENERIC_NEXT_DAY: case KEY_GENERIC_PREV_WEEK: + case KEY_GENERIC_NEXT_WEEK: case KEY_GENERIC_GOTO_TODAY: case KEY_GENERIC_CREDITS: case KEY_GENERIC_CUT: @@ -212,10 +212,10 @@ static int wanted_page(int ch) case KEY_GENERIC_REDRAW: case KEY_GENERIC_ADD_APPT: case KEY_GENERIC_ADD_TODO: - case KEY_GENERIC_NEXT_DAY: case KEY_GENERIC_PREV_DAY: - case KEY_GENERIC_NEXT_WEEK: + case KEY_GENERIC_NEXT_DAY: case KEY_GENERIC_PREV_WEEK: + case KEY_GENERIC_NEXT_WEEK: case KEY_GENERIC_GOTO_TODAY: page = HELP_GENERAL; break; -- cgit v1.2.3-54-g00ecf