aboutsummaryrefslogtreecommitdiffstats
path: root/src/calendar.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-10-21 13:42:34 +0000
committerFrederic Culot <calcurse@culot.org>2007-10-21 13:42:34 +0000
commit53ead324ad5ef82415279b32ca5cd0a3d1f48866 (patch)
tree7c80c420a06af9819b794a18d6e724ccd7989506 /src/calendar.c
parent15ea0407800d0c6dbf76b213f76816e70815b668 (diff)
downloadcalcurse-53ead324ad5ef82415279b32ca5cd0a3d1f48866.tar.gz
calcurse-53ead324ad5ef82415279b32ca5cd0a3d1f48866.zip
routines updated to handle new window_t and window_e types
Diffstat (limited to 'src/calendar.c')
-rwxr-xr-xsrc/calendar.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/calendar.c b/src/calendar.c
index 5523634..b13265b 100755
--- a/src/calendar.c
+++ b/src/calendar.c
@@ -1,4 +1,4 @@
-/* $calcurse: calendar.c,v 1.11 2007/10/16 19:11:10 culot Exp $ */
+/* $calcurse: calendar.c,v 1.12 2007/10/21 13:42:34 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -75,7 +75,7 @@ calendar_date_thread(void *arg)
}
calendar_set_current_date();
- calendar_update_panel(cwin);
+ calendar_update_panel(win[CAL].p);
}
pthread_exit((void*) 0);
@@ -347,7 +347,8 @@ calendar_change_day(void)
while (wrong_day) {
status_mesg(request_date, "");
- if (getstring(swin, selected_day, LDAY, 0, 1) == GETSTRING_ESC)
+ if (getstring(win[STA].p, selected_day, LDAY, 0, 1) ==
+ GETSTRING_ESC)
return;
else {
if (strlen(selected_day) == 0) {
@@ -385,7 +386,7 @@ calendar_change_day(void)
if (wrong_day) {
status_mesg(mesg_line1, mesg_line2);
- wgetch(swin);
+ wgetch(win[STA].p);
}
}
}