~ubuntu-branches/ubuntu/wily/evolution-data-server/wily

« back to all changes in this revision

Viewing changes to calendar/libedata-cal/e-cal-backend.c

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2015-07-20 13:34:59 UTC
  • mfrom: (1.1.126) (1.2.48 sid)
  • Revision ID: package-import@ubuntu.com-20150720133459-g6y46hnu5ewtoz08
Tags: 3.16.4-0ubuntu2
debian/patches/0001-Bug-752373-Monthly-events-do-not-recur-correctly.patch:
Cherry-pick patch from upstream to fix events not recurring correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * e-cal-backend.c
3
3
 *
4
 
 * This library is free software you can redistribute it and/or modify it
 
4
 * This library is free software: you can redistribute it and/or modify it
5
5
 * under the terms of the GNU Lesser General Public License as published by
6
6
 * the Free Software Foundation.
7
7
 *
8
8
 * This library is distributed in the hope that it will be useful, but
9
9
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
 
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 
10
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
11
11
 * for more details.
12
12
 *
13
13
 * You should have received a copy of the GNU Lesser General Public License
14
 
 * along with this library; if not, see <http://www.gnu.org/licenses/>.
 
14
 * along with this library. If not, see <http://www.gnu.org/licenses/>.
15
15
 *
16
16
 */
17
17
 
706
706
        }
707
707
}
708
708
 
709
 
static gboolean
710
 
cal_backend_authenticate_sync (EBackend *backend,
711
 
                               ESourceAuthenticator *auth,
712
 
                               GCancellable *cancellable,
713
 
                               GError **error)
 
709
static void
 
710
cal_backend_prepare_shutdown (EBackend *backend)
714
711
{
715
 
        ECalBackend *cal_backend;
716
 
        ESourceRegistry *registry;
717
 
        ESource *source;
718
 
 
719
 
        cal_backend = E_CAL_BACKEND (backend);
720
 
        registry = e_cal_backend_get_registry (cal_backend);
721
 
        source = e_backend_get_source (backend);
722
 
 
723
 
        return e_source_registry_authenticate_sync (
724
 
                registry, source, auth, cancellable, error);
 
712
        GList *list, *l;
 
713
 
 
714
        list = e_cal_backend_list_views (E_CAL_BACKEND (backend));
 
715
 
 
716
        for (l = list; l != NULL; l = g_list_next (l)) {
 
717
                EDataCalView *view = l->data;
 
718
 
 
719
                e_cal_backend_remove_view (E_CAL_BACKEND (backend), view);
 
720
        }
 
721
 
 
722
        g_list_free_full (list, g_object_unref);
 
723
 
 
724
        /* Chain up to parent's prepare_shutdown() method. */
 
725
        E_BACKEND_CLASS (e_cal_backend_parent_class)->prepare_shutdown (backend);
725
726
}
726
727
 
727
728
static void
910
911
        object_class->constructed = cal_backend_constructed;
911
912
 
912
913
        backend_class = E_BACKEND_CLASS (class);
913
 
        backend_class->authenticate_sync = cal_backend_authenticate_sync;
 
914
        backend_class->prepare_shutdown = cal_backend_prepare_shutdown;
914
915
 
915
916
        class->get_backend_property = cal_backend_get_backend_property;
916
917
        class->shutdown = cal_backend_shutdown;