Code to save the calendar default view in the configuration file.

This commit is contained in:
Frederic Culot
2009-10-28 15:15:43 +00:00
parent d678eb411a
commit 758d5ff035
6 changed files with 39 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
/* $calcurse: calendar.c,v 1.29 2009/10/16 15:52:00 culot Exp $ */
/* $calcurse: calendar.c,v 1.30 2009/10/28 15:15:43 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -101,6 +101,18 @@ calendar_view_prev (void)
calendar_view--;
}
void
calendar_set_view (int view)
{
calendar_view = (view < 0 || view >= CAL_VIEWS) ? CAL_MONTH_VIEW : view;
}
int
calendar_get_view (void)
{
return (int)calendar_view;
}
/* Thread needed to update current date in calendar. */
/* ARGSUSED0 */
static void *