summaryrefslogtreecommitdiff
path: root/calendar/backends/weather
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2006-01-04 23:47:08 +0000
committerTor Lillqvist <tml@src.gnome.org>2006-01-04 23:47:08 +0000
commit1cd2d1e18c90f2761c37459b1f217b0314e4d6ba (patch)
treec8be9f7d64b0e92267a4ba8ca926393555e4d449 /calendar/backends/weather
parent17f4a45b05ab8936523e8ea5048ef0254b9ad83d (diff)
downloadevolution-data-server-1cd2d1e18c90f2761c37459b1f217b0314e4d6ba.tar.gz
As this (Win32-only) function is called from evo, too, it needs a third
2006-01-04 Tor Lillqvist <tml@novell.com> * libedataserver/e-util.c (e_util_replace_prefix): As this (Win32-only) function is called from evo, too, it needs a third argument, the configure time prefix that it should replace, instead of harcoding e-d-s's one. (Assuming e-d-s and evo are configured with different temporary dirs as prefix, which is the recommended way.) * libedataserver/e-util.h: Update declaration correspondingly. * src/server.c (libdir): Modify calls correspondingly. In camel: 2006-01-04 Tor Lillqvist <tml@novell.com> * camel-win32.c (setup): Modify calls to e_util_replace_prefix() according to its changed interface. * Makefile.am (INCLUDES): Need to pass also E_DATA_SERVER_PREFIX to the compilation because of the above. In calendar: 2006-01-04 Tor Lillqvist <tml@novell.com> * backends/weather/e-weather-source-ccf.c (find_station_url): Modify call to e_util_replace_prefix() according to its changed interface. * backends/weather/Makefile.am: Need to pass E_DATA_SERVER_PREFIX because of the above.
Diffstat (limited to 'calendar/backends/weather')
-rw-r--r--calendar/backends/weather/Makefile.am1
-rw-r--r--calendar/backends/weather/e-weather-source-ccf.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/calendar/backends/weather/Makefile.am b/calendar/backends/weather/Makefile.am
index 21aef5d21..4ce384d1b 100644
--- a/calendar/backends/weather/Makefile.am
+++ b/calendar/backends/weather/Makefile.am
@@ -10,6 +10,7 @@ INCLUDES = \
-I$(top_builddir)/calendar/libical/src/libical \
-I$(top_srcdir)/addressbook \
-I$(top_builddir)/addressbook \
+ -DE_DATA_SERVER_PREFIX=\"$(prefix)\" \
-DWEATHER_DATADIR=\""$(weatherdatadir)"\" \
$(EVOLUTION_CALENDAR_CFLAGS) \
$(SOUP_CFLAGS)
diff --git a/calendar/backends/weather/e-weather-source-ccf.c b/calendar/backends/weather/e-weather-source-ccf.c
index 9308bc2ab..2c7d23865 100644
--- a/calendar/backends/weather/e-weather-source-ccf.c
+++ b/calendar/backends/weather/e-weather-source-ccf.c
@@ -103,7 +103,8 @@ find_station_url (gchar *station, EWeatherSourceCCF *source)
#ifndef G_OS_WIN32
filename = g_strdup (WEATHER_DATADIR "/Locations.xml");
#else
- filename = e_util_replace_prefix (e_util_get_prefix (),
+ filename = e_util_replace_prefix (E_DATA_SERVER_PREFIX,
+ e_util_get_prefix (),
WEATHER_DATADIR "/Locations.xml");
#endif