pidgin: 68e8e6b7: Make Pidgin set the exchndl.dll log file...
datallah at pidgin.im
datallah at pidgin.im
Thu Feb 25 02:17:27 EST 2010
-----------------------------------------------------------------
Revision: 68e8e6b7e41c05911e64291e30e640aee55cabab
Ancestor: e432fcd298e93b7796958a9146177f371928614b
Author: datallah at pidgin.im
Date: 2010-02-25T07:09:11
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/68e8e6b7e41c05911e64291e30e640aee55cabab
Modified files:
pidgin/win32/gtkwin32dep.c
ChangeLog:
Make Pidgin set the exchndl.dll log file to ~/.purple/pidgin.RPT
-------------- next part --------------
============================================================
--- pidgin/win32/gtkwin32dep.c 86796839088a2c61f9ad7ac1c78cf260e9072664
+++ pidgin/win32/gtkwin32dep.c 1c561c999e3b3233b2698a6e92c56649b26a9591
@@ -375,11 +375,27 @@ void winpidgin_init(HINSTANCE hint) {
}
void winpidgin_init(HINSTANCE hint) {
+ FARPROC proc;
purple_debug_info("winpidgin", "winpidgin_init start\n");
exe_hInstance = hint;
+ proc = wpurple_find_and_loadproc("exchndl.dll", "SetLogFile");
+ if (proc) {
+ gchar *debug_dir, *locale_debug_dir;
+
+ debug_dir = g_build_filename(purple_user_dir(), "pidgin.RPT", NULL);
+ locale_debug_dir = g_locale_from_utf8(debug_dir, -1, NULL, NULL, NULL);
+
+ purple_debug_info("winpidgin", "Setting exchndl.dll LogFile to %s\n", debug_dir);
+
+ (proc)(locale_debug_dir);
+
+ g_free(debug_dir);
+ g_free(locale_debug_dir);
+ }
+
/* IdleTracker Initialization */
if(!winpidgin_set_idlehooks())
purple_debug_error("winpidgin", "Failed to initialize idle tracker\n");
More information about the Commits
mailing list