aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/main.c')
-rw-r--r--calendar/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/calendar/main.c b/calendar/main.c
index 19cebcd8c8..be26bcff46 100644
--- a/calendar/main.c
+++ b/calendar/main.c
@@ -426,6 +426,18 @@ save_calendar_cmd (GtkWidget *widget, void *data)
save_as_calendar_cmd (widget, data);
}
+/*
+ * Saves @gcal if it is the default calendar
+ */
+void
+save_default_calendar (GnomeCalendar *gcal)
+{
+ if (!gcal->cal->filename)
+ return;
+
+ save_calendar_cmd (NULL, gcal);
+}
+
static GnomeUIInfo gnome_cal_file_menu [] = {
GNOMEUIINFO_MENU_NEW_ITEM(N_("_New calendar"),
N_("Create a new calendar"),