From 53ead324ad5ef82415279b32ca5cd0a3d1f48866 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sun, 21 Oct 2007 13:42:34 +0000 Subject: routines updated to handle new window_t and window_e types --- src/calendar.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/calendar.c') 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); } } } -- cgit v1.2.3-54-g00ecf