changeset 32090:fd2f3d2d8140

Debugging info to find bad themes.
author tdrhq@soc.pidgin.im
date Mon, 10 Aug 2009 10:26:02 +0000
parents 1cd4613c620d
children 9ed5d83f52fe
files pidgin/plugins/adiumthemes/webkit.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/plugins/adiumthemes/webkit.c	Mon Aug 10 10:08:02 2009 +0000
+++ b/pidgin/plugins/adiumthemes/webkit.c	Mon Aug 10 10:26:02 2009 +0000
@@ -132,7 +132,7 @@
 	GList  *cur = style_list;
 	char   *file; /* temporary variable */
 	PidginMessageStyle *style = NULL;
-	
+
 	g_assert (styledir);
 	for (cur = style_list; cur; cur = g_list_next (cur)) {
 		style = (PidginMessageStyle*) cur->data;
@@ -158,11 +158,13 @@
 
 	if (!g_file_get_contents(style->template_path, &style->template_html, NULL, NULL)) {
 		pidgin_message_style_unref (style);
+		purple_debug_error ("webkit", "Could not locate a Template.html\n");
 		return NULL;
 	}
 
 	file = g_build_filename(styledir, "Contents", "Resources", "Status.html", NULL);
 	if (!g_file_get_contents(file, &style->status_html, NULL, NULL)) {
+		purple_debug_info ("webkit", "%s could not find Resources/Status.html", styledir);
 		pidgin_message_style_unref (style);
 		g_free (file);
 		return NULL;
@@ -186,6 +188,7 @@
 
 	file = g_build_filename(styledir, "Contents", "Resources", "Incoming", "Content.html", NULL);
 	if (!g_file_get_contents(file, &style->incoming_content_html, NULL, NULL)) {
+		purple_debug_info ("webkit", "%s did not have a Incoming/Content.html\n", styledir);
 		pidgin_message_style_unref (style);
 		g_free (file);
 		return NULL;
@@ -454,7 +457,7 @@
 	
 	if (oldStyle) return;
 
-	purple_debug_info ("webkit", "loading %s", style_dir);
+	purple_debug_info ("webkit", "loading %s\n", style_dir);
 	style = pidgin_message_style_load (style_dir);
 	g_assert (style);