# HG changeset patch # User Yoshiki Yazawa # Date 1216609616 -32400 # Node ID 686498cc1e7a183120ac40aabf77e3c28d576172 # Parent 249174fdd63d5f2dbd7bfa9e4ff9bb9a8d4d633d in win 32 environment, DATADIR cannot be resolved at compile time, so that use purple_user_dir() instead. diff -r 249174fdd63d -r 686498cc1e7a pidgin-twitter.c --- 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);