diff options
author | Frederic Culot <calcurse@culot.org> | 2007-10-21 13:42:34 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2007-10-21 13:42:34 +0000 |
commit | 53ead324ad5ef82415279b32ca5cd0a3d1f48866 (patch) | |
tree | 7c80c420a06af9819b794a18d6e724ccd7989506 /src/recur.c | |
parent | 15ea0407800d0c6dbf76b213f76816e70815b668 (diff) | |
download | calcurse-53ead324ad5ef82415279b32ca5cd0a3d1f48866.zip |
routines updated to handle new window_t and window_e types
Diffstat (limited to 'src/recur.c')
-rwxr-xr-x | src/recur.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/recur.c b/src/recur.c index d53eb3c..47db9f2 100755 --- a/src/recur.c +++ b/src/recur.c @@ -1,4 +1,4 @@ -/* $calcurse: recur.c,v 1.29 2007/08/15 15:37:31 culot Exp $ */ +/* $calcurse: recur.c,v 1.30 2007/10/21 13:42:34 culot Exp $ */ /* * Calcurse - text-based organizer @@ -608,14 +608,14 @@ recur_repeat_item(void) p = day_get_item(item_nb); if (p->type != APPT && p->type != EVNT) { status_mesg(wrong_type_1, wrong_type_2); - ch = wgetch(swin); + ch = wgetch(win[STA].p); return; } while ( (ch != 'D') && (ch != 'W') && (ch != 'M') && (ch != 'Y') && (ch != ESCAPE) ) { status_mesg(mesg_type_1, mesg_type_2); - ch = wgetch(swin); + ch = wgetch(win[STA].p); ch = toupper(ch); } if (ch == ESCAPE) { @@ -627,12 +627,12 @@ recur_repeat_item(void) while (freq == 0) { status_mesg(mesg_freq_1, ""); - if (getstring(swin, user_input, BUFSIZ, 0, 1) == + if (getstring(win[STA].p, user_input, BUFSIZ, 0, 1) == GETSTRING_VALID) { freq = atoi(user_input); if (freq == 0) { status_mesg(mesg_wrong_freq, wrong_type_2); - wgetch(swin); + wgetch(win[STA].p); } user_input[0] = '\0'; } else @@ -641,7 +641,8 @@ recur_repeat_item(void) while (!date_entered) { status_mesg(mesg_until_1, ""); - if (getstring(swin, user_input, 11, 0, 1) == GETSTRING_VALID) { + if (getstring(win[STA].p, user_input, 11, 0, 1) == + GETSTRING_VALID) { if (strlen(user_input) == 1 && strncmp(user_input, "0", 1) == 0 ) { until = 0; @@ -660,7 +661,7 @@ recur_repeat_item(void) if (until < p->start) { status_mesg(mesg_older, wrong_type_2); - wgetch(swin); + wgetch(win[STA].p); date_entered = 0; } else { date_entered = 1; |