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

« back to all changes in this revision

Viewing changes to calendar/backends/weather/e-cal-backend-weather-factory.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:
2
2
 *
3
3
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
4
4
 *
5
 
 * Authors: David Trowbridge <trowbrds@cs.colorado.edu>
6
 
 *
7
 
 * This library is free software you can redistribute it and/or modify it
 
5
 * This library is free software: you can redistribute it and/or modify it
8
6
 * under the terms of the GNU Lesser General Public License as published by
9
7
 * the Free Software Foundation.
10
8
 *
11
9
 * This library is distributed in the hope that it will be useful, but
12
10
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13
 
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14
 
 *for more details.
 
11
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
 
12
 * for more details.
15
13
 *
16
14
 * You should have received a copy of the GNU Lesser General Public License
17
 
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
 
15
 * along with this library. If not, see <http://www.gnu.org/licenses/>.
 
16
 *
 
17
 * Authors: David Trowbridge <trowbrds@cs.colorado.edu>
18
18
 */
19
19
 
20
20
#include <config.h>
27
27
typedef ECalBackendFactory ECalBackendWeatherEventsFactory;
28
28
typedef ECalBackendFactoryClass ECalBackendWeatherEventsFactoryClass;
29
29
 
 
30
static EModule *e_module;
 
31
 
30
32
/* Module Entry Points */
31
33
void e_module_load (GTypeModule *type_module);
32
34
void e_module_unload (GTypeModule *type_module);
42
44
static void
43
45
e_cal_backend_weather_events_factory_class_init (ECalBackendFactoryClass *class)
44
46
{
 
47
        EBackendFactoryClass *backend_factory_class;
 
48
 
 
49
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
 
50
        backend_factory_class->e_module = e_module;
 
51
        backend_factory_class->share_subprocess = TRUE;
 
52
 
45
53
        class->factory_name = FACTORY_NAME;
46
54
        class->component_kind = ICAL_VEVENT_COMPONENT;
47
55
        class->backend_type = E_TYPE_CAL_BACKEND_WEATHER;
60
68
G_MODULE_EXPORT void
61
69
e_module_load (GTypeModule *type_module)
62
70
{
 
71
        e_module = E_MODULE (type_module);
 
72
 
63
73
        e_source_weather_type_register (type_module);
64
74
        e_cal_backend_weather_events_factory_register_type (type_module);
65
75
}
67
77
G_MODULE_EXPORT void
68
78
e_module_unload (GTypeModule *type_module)
69
79
{
 
80
        e_module = NULL;
70
81
}
71
82