summaryrefslogtreecommitdiffstats
path: root/src/calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/calendar.c')
-rwxr-xr-xsrc/calendar.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/calendar.c b/src/calendar.c
index 811d23c..84dd207 100755
--- a/src/calendar.c
+++ b/src/calendar.c
@@ -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 *