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/gncal-full-day.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/gncal-full-day.c')
-rw-r--r-- | calendar/gui/gncal-full-day.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/calendar/gui/gncal-full-day.c b/calendar/gui/gncal-full-day.c index c33cb2ed31..f813f1598c 100644 --- a/calendar/gui/gncal-full-day.c +++ b/calendar/gui/gncal-full-day.c @@ -431,13 +431,15 @@ delete_occurance (GtkWidget *widget, gpointer data) Child *child; iCalObject *ical; time_t *t; - + GnomeCalendar *gcal = GNCAL_FULL_DAY (child->widget->parent)->calendar; + child = data; ical = child->ico; t = g_new(time_t, 1); *t = child->start; ical->exdate = g_list_prepend(ical->exdate, t); - gnome_calendar_object_changed(GNCAL_FULL_DAY (child->widget->parent)->calendar, child->ico, CHANGE_DATES); + gnome_calendar_object_changed (gcal, child->ico, CHANGE_DATES); + save_default_calendar (gcal); } @@ -452,6 +454,7 @@ delete_appointment (GtkWidget *widget, gpointer data) fullday = GNCAL_FULL_DAY (child->widget->parent); gnome_calendar_remove_object (fullday->calendar, child->ico); + save_default_calendar (fullday->calendar); } static void @@ -476,6 +479,7 @@ unrecur_appointment (GtkWidget *widget, gpointer data) gnome_calendar_object_changed (fullday->calendar, child->ico, CHANGE_ALL); gnome_calendar_add_object (fullday->calendar, new); + save_default_calendar (fullday->calendar); } static void @@ -629,6 +633,7 @@ child_focus_out (GtkWidget *widget, GdkEventFocus *event, gpointer data) fullday = GNCAL_FULL_DAY (widget->parent); gnome_calendar_object_changed (fullday->calendar, child->ico, CHANGE_SUMMARY); + save_default_calendar (fullday->calendar); return FALSE; } @@ -1827,6 +1832,7 @@ update_from_drag_info (GncalFullDay *fullday) /* Notify calendar of change */ gnome_calendar_object_changed (fullday->calendar, di->child->ico, CHANGE_DATES); + save_default_calendar (fullday->calendar); } static gint |