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

« back to all changes in this revision

Viewing changes to .pc/gweather_3.6.patch/calendar/backends/weather/e-weather-source.c

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-10-08 12:58:16 UTC
  • mfrom: (181.1.7 quantal)
  • Revision ID: package-import@ubuntu.com-20121008125816-i3n76e8c0m64e7xp
Tags: 3.6.0-0ubuntu2
* Fix LP: #1038047 part 1 - Don't abort in e_source_registry_new* when a
  problem occurs connecting to the Dbus service
  - add debian/patches/dont-abort-in-e_source_registry_new.patch
  - update debian/patches/series
* Fix LP: #1038047 part 2 - libedataserver depends on
  evolution-data-server-common to ensure that the GSettings schemas are
  present
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Evolution calendar - weather backend source class
2
 
 *
3
 
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
4
 
 *
5
 
 * Authors: David Trowbridge <trowbrds@cs.colorado.edu>
6
 
 *
7
 
 * This program is free software; you can redistribute it and/or
8
 
 * modify it under the terms of version 2 of the GNU Lesser General Public
9
 
 * License as published by the Free Software Foundation.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU Lesser General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU Lesser General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
 
 */
20
 
 
21
 
#include "e-weather-source.h"
22
 
#include "e-weather-source-ccf.h"
23
 
 
24
 
#include <string.h>
25
 
 
26
 
G_DEFINE_TYPE (EWeatherSource, e_weather_source, G_TYPE_OBJECT)
27
 
 
28
 
void
29
 
e_weather_source_parse (EWeatherSource *source,
30
 
                        EWeatherSourceFinished done,
31
 
                        gpointer data)
32
 
{
33
 
        EWeatherSourceClass *class;
34
 
 
35
 
        g_return_if_fail (source != NULL);
36
 
 
37
 
        class = E_WEATHER_SOURCE_GET_CLASS (source);
38
 
        g_return_if_fail (class->parse != NULL);
39
 
 
40
 
        class->parse (source, done, data);
41
 
}
42
 
 
43
 
static void
44
 
e_weather_source_class_init (EWeatherSourceClass *class)
45
 
{
46
 
        /* nothing to do here */
47
 
}
48
 
 
49
 
static void
50
 
e_weather_source_init (EWeatherSource *source)
51
 
{
52
 
        /* nothing to do here */
53
 
}
54
 
 
55
 
EWeatherSource *
56
 
e_weather_source_new (const gchar *location)
57
 
{
58
 
        g_return_val_if_fail (location != NULL, NULL);
59
 
 
60
 
        return e_weather_source_ccf_new (location);
61
 
}