aboutsummaryrefslogtreecommitdiffstats
path: root/src/apoint.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2008-11-16 17:42:53 +0000
committerFrederic Culot <calcurse@culot.org>2008-11-16 17:42:53 +0000
commit9d4899110a067d4899116ac229c8b4c489096b60 (patch)
treef10f31dc5e8114791236ada1ebee8d27b31b7e72 /src/apoint.c
parente8f12c65ca0245079ae015a90e7a14109759cdda (diff)
downloadcalcurse-9d4899110a067d4899116ac229c8b4c489096b60.tar.gz
calcurse-9d4899110a067d4899116ac229c8b4c489096b60.zip
More work on implementing user-definable keybindings
Diffstat (limited to 'src/apoint.c')
-rwxr-xr-xsrc/apoint.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/apoint.c b/src/apoint.c
index 1ca2e6f..3f846ff 100755
--- a/src/apoint.c
+++ b/src/apoint.c
@@ -1,4 +1,4 @@
-/* $calcurse: apoint.c,v 1.23 2008/04/19 21:05:15 culot Exp $ */
+/* $calcurse: apoint.c,v 1.24 2008/11/16 17:42:53 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -32,12 +32,13 @@
#include "i18n.h"
#include "vars.h"
#include "event.h"
-#include "apoint.h"
#include "day.h"
#include "custom.h"
#include "notify.h"
#include "recur.h"
+#include "keys.h"
#include "calendar.h"
+#include "apoint.h"
apoint_llist_t *alist_p;
static int hilt = 0;
@@ -150,7 +151,7 @@ apoint_add (void)
else if (check_time (item_time) != 1)
{
status_mesg (format_message_1, enter_str);
- wgetch (win[STA].p);
+ keys_getch (win[STA].p);
}
else
sscanf (item_time, "%u:%u", &heures, &minutes);
@@ -174,7 +175,7 @@ apoint_add (void)
else if (check_time (item_time) == 0)
{
status_mesg (format_message_2, enter_str);
- wgetch (win[STA].p);
+ keys_getch (win[STA].p);
}
else
{
@@ -241,7 +242,7 @@ apoint_delete (conf_t *conf, unsigned *nb_events, unsigned *nb_apoints)
if (conf->confirm_delete)
{
status_mesg (del_app_str, choices);
- answer = wgetch (win[STA].p);
+ answer = keys_getch (win[STA].p);
if ((answer == 'y') && (nb_items != 0))
go_for_deletion = true;
else