evolution-exchange r1638 - in trunk: . camel



Author: tml
Date: Thu May  8 01:01:22 2008
New Revision: 1638
URL: http://svn.gnome.org/viewvc/evolution-exchange?rev=1638&view=rev

Log:
2008-05-08  Tor Lillqvist  <tml novell com>

	* camel/camel-exchange-provider.c: Include
	libedataserver/e-data-server-util.h for some Windows-specific
	functions. Construct the localedir at run-time on Windows.



Modified:
   trunk/ChangeLog
   trunk/camel/camel-exchange-provider.c

Modified: trunk/camel/camel-exchange-provider.c
==============================================================================
--- trunk/camel/camel-exchange-provider.c	(original)
+++ trunk/camel/camel-exchange-provider.c	Thu May  8 01:01:22 2008
@@ -25,6 +25,8 @@
 
 #include <string.h>
 
+#include <libedataserver/e-data-server-util.h>
+
 #include <glib/gi18n-lib.h>
 
 #include <camel/camel-provider.h>
@@ -36,6 +38,19 @@
 static guint exchange_url_hash (gconstpointer key);
 static gint exchange_url_equal (gconstpointer a, gconstpointer b);
 
+#ifdef G_OS_WIN32
+
+static const char *
+get_localedir (void)
+{
+	return e_util_replace_prefix (PREFIX, e_util_get_cp_prefix (), CONNECTOR_LOCALEDIR);
+}
+
+#undef CONNECTOR_LOCALEDIR
+#define CONNECTOR_LOCALEDIR get_localedir ()
+
+#endif
+
 CamelProviderConfEntry exchange_conf_entries[] = {
 	{ CAMEL_PROVIDER_CONF_SECTION_START, "mailcheck", NULL,
 	  N_("Checking for New Mail") },



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]