changeset 15529:443915ab77a1

I had the wrong arguments for gaim_log_logger_new(). It didn't work, but I've fixed that now. Also, the is_deletable access() stuff won't work on win32, so it's just disabled there for now.
author Richard Laager <rlaager@wiktel.com>
date Sun, 04 Feb 2007 05:48:15 +0000
parents f61ad08739fc
children 3fbd4d8b5f2b
files libpurple/log.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/log.c	Sat Feb 03 21:43:29 2007 +0000
+++ b/libpurple/log.c	Sun Feb 04 05:48:15 2007 +0000
@@ -590,7 +590,7 @@
 
 	gaim_prefs_add_string("/core/logging/format", "txt");
 
-	html_logger = gaim_log_logger_new("html", _("HTML"), 8,
+	html_logger = gaim_log_logger_new("html", _("HTML"), 11,
 									  NULL,
 									  html_logger_write,
 									  html_logger_finalize,
@@ -604,7 +604,7 @@
 									  gaim_log_common_is_deletable);
 	gaim_log_logger_add(html_logger);
 
-	txt_logger = gaim_log_logger_new("txt", _("Plain text"), 8,
+	txt_logger = gaim_log_logger_new("txt", _("Plain text"), 11,
 									 NULL,
 									 txt_logger_write,
 									 txt_logger_finalize,
@@ -1027,13 +1027,20 @@
 	if (data->path == NULL)
 		return FALSE;
 
+#ifndef _WIN32
 	dirname = g_path_get_dirname(data->path);
 	if (g_access(dirname, W_OK) == 0)
 	{
 		g_free(dirname);
 		return TRUE;
 	}
+	gaim_debug_info("log", "access(%s) failed: %s\n", dirname, strerror(errno));
 	g_free(dirname);
+#else
+	/* Unless and until someone writes equivalent win32 code,
+	 * we'll assume the file is deletable. */
+	return TRUE;
+#endif
 
 	return FALSE;
 }