diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1999-02-12 09:27:52 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-02-12 09:27:52 +0800 |
commit | 1f3958dbd1fef814f3c7d655ff6f4bfbbf8229bd (patch) | |
tree | ea0bfc96b420ce323dbe8afaf13c1b8ae00e6a80 /calendar/gui/main.c | |
parent | 27660c1d472b5a182170def1510ab70cde116fcd (diff) | |
download | gsoc2013-evolution-1f3958dbd1fef814f3c7d655ff6f4bfbbf8229bd.tar.gz 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/gui/main.c')
-rw-r--r-- | calendar/gui/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/calendar/gui/main.c b/calendar/gui/main.c index 19cebcd8c8..be26bcff46 100644 --- a/calendar/gui/main.c +++ b/calendar/gui/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"), |