Code to save the calendar default view in the configuration file.
This commit is contained in:
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user