changeset 129:686498cc1e7a

in win 32 environment, DATADIR cannot be resolved at compile time, so that use purple_user_dir() instead.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 21 Jul 2008 12:06:56 +0900
parents 249174fdd63d
children 30f3695bb969
files pidgin-twitter.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin-twitter.c	Mon Jul 21 11:42:06 2008 +0900
+++ b/pidgin-twitter.c	Mon Jul 21 12:06:56 2008 +0900
@@ -2439,7 +2439,13 @@
 
     builder = gtk_builder_new();
 
-    filename = g_build_filename(DATADIR, "pidgin-twitter", "prefs.ui", NULL);
+#ifdef _WIN32
+    filename = g_build_filename(purple_user_dir(),
+                                "pidgin-twitter", "prefs.ui", NULL);
+#else
+    filename = g_build_filename(DATADIR,
+                                "pidgin-twitter", "prefs.ui", NULL);
+#endif
     gtk_builder_add_from_file(builder, filename, &err);
     if(err) {
         twitter_debug("%s\n", err->message);