aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/main.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-02-12 09:27:52 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-02-12 09:27:52 +0800
commit1f3958dbd1fef814f3c7d655ff6f4bfbbf8229bd (patch)
treeea0bfc96b420ce323dbe8afaf13c1b8ae00e6a80 /calendar/main.c
parent27660c1d472b5a182170def1510ab70cde116fcd (diff)
downloadgsoc2013-evolution-1f3958dbd1fef814f3c7d655ff6f4bfbbf8229bd.tar
gsoc2013-evolution-1f3958dbd1fef814f3c7d655ff6f4bfbbf8229bd.tar.gz
gsoc2013-evolution-1f3958dbd1fef814f3c7d655ff6f4bfbbf8229bd.tar.bz2
gsoc2013-evolution-1f3958dbd1fef814f3c7d655ff6f4bfbbf8229bd.tar.lz
gsoc2013-evolution-1f3958dbd1fef814f3c7d655ff6f4bfbbf8229bd.tar.xz
gsoc2013-evolution-1f3958dbd1fef814f3c7d655ff6f4bfbbf8229bd.tar.zst
gsoc2013-evolution-1f3958dbd1fef814f3c7d655ff6f4bfbbf8229bd.zip
Gnomecal now autosaves all the time.
Gnomecal now autosaves all the time. Miguel. svn path=/trunk/; revision=662
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"),