summaryrefslogtreecommitdiff
path: root/src/wins.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-06-12 22:42:28 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-06-13 00:12:27 +0200
commit42c486d30d8e6f82d27651e19029e332af86cba3 (patch)
treec02b65cdda719ca0f1f30a85696737071c2b798c /src/wins.c
parent844d35e851b5ef51bc8c0822dbd699b619ddd194 (diff)
downloadcalcurse-42c486d30d8e6f82d27651e19029e332af86cba3.zip
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'src/wins.c')
-rw-r--r--src/wins.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/wins.c b/src/wins.c
index b45ad6c..7d2f8a2 100644
--- a/src/wins.c
+++ b/src/wins.c
@@ -597,10 +597,10 @@ void wins_status_bar(void)
struct binding draw = { _("Redraw"), KEY_GENERIC_REDRAW };
struct binding appt = { _("Add Appt"), KEY_GENERIC_ADD_APPT };
struct binding todo = { _("Add Todo"), KEY_GENERIC_ADD_TODO };
- struct binding gnday = { _("+1 Day"), KEY_GENERIC_NEXT_DAY };
struct binding gpday = { _("-1 Day"), KEY_GENERIC_PREV_DAY };
- struct binding gnweek = { _("+1 Week"), KEY_GENERIC_NEXT_WEEK };
+ struct binding gnday = { _("+1 Day"), KEY_GENERIC_NEXT_DAY };
struct binding gpweek = { _("-1 Week"), KEY_GENERIC_PREV_WEEK };
+ struct binding gnweek = { _("+1 Week"), KEY_GENERIC_NEXT_WEEK };
struct binding today = { _("Today"), KEY_GENERIC_GOTO_TODAY };
struct binding nview = { _("Nxt View"), KEY_GENERIC_SCROLL_DOWN };
struct binding pview = { _("Prv View"), KEY_GENERIC_SCROLL_UP };
@@ -625,20 +625,20 @@ void wins_status_bar(void)
struct binding *bindings_cal[] = {
&help, &quit, &save, &chgvu, &nview, &pview, &up, &down, &left, &right,
- &togo, &import, &export, &weekb, &weeke, &appt, &todo, &gnday, &gpday,
- &gnweek, &gpweek, &draw, &today, &conf
+ &togo, &import, &export, &weekb, &weeke, &appt, &todo, &gpday, &gnday,
+ &gpweek, &gnweek, &draw, &today, &conf
};
struct binding *bindings_apoint[] = {
&help, &quit, &save, &chgvu, &import, &export, &add, &del, &edit, &view,
- &pipe, &draw, &rept, &flag, &enote, &vnote, &up, &down, &gnday, &gpday,
- &gnweek, &gpweek, &togo, &today, &conf, &appt, &todo, &cut, &paste
+ &pipe, &draw, &rept, &flag, &enote, &vnote, &up, &down, &gpday, &gnday,
+ &gpweek, &gnweek, &togo, &today, &conf, &appt, &todo, &cut, &paste
};
struct binding *bindings_todo[] = {
&help, &quit, &save, &chgvu, &import, &export, &add, &del, &edit, &view,
- &pipe, &flag, &rprio, &lprio, &enote, &vnote, &up, &down, &gnday, &gpday,
- &gnweek, &gpweek, &togo, &today, &conf, &appt, &todo, &draw
+ &pipe, &flag, &rprio, &lprio, &enote, &vnote, &up, &down, &gpday, &gnday,
+ &gpweek, &gnweek, &togo, &today, &conf, &appt, &todo, &draw
};
enum win active_panel = wins_slctd();