soc.2009.webkitmessageview: 4a386863: Debugging info to find bad themes.

tdrhq at soc.pidgin.im tdrhq at soc.pidgin.im
Tue Aug 25 12:02:23 EDT 2009


-----------------------------------------------------------------
Revision: 4a38686315167fc9d07f467c1886df94b866e6af
Ancestor: 551f280fab97e238022ac688cc44a58b83137fe7
Author: tdrhq at soc.pidgin.im
Date: 2009-08-10T10:26:02
Branch: im.pidgin.soc.2009.webkitmessageview
URL: http://d.pidgin.im/viewmtn/revision/info/4a38686315167fc9d07f467c1886df94b866e6af

Modified files:
        pidgin/plugins/adiumthemes/webkit.c

ChangeLog: 

Debugging info to find bad themes.

-------------- next part --------------
============================================================
--- pidgin/plugins/adiumthemes/webkit.c	dbd714a7211c27cf03c45285491b217b236efbe9
+++ pidgin/plugins/adiumthemes/webkit.c	bfba083cff73c8b40b06eeabf1bfd0f665f07378
@@ -132,7 +132,7 @@ pidgin_message_style_load (const char* s
 	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 @@ pidgin_message_style_load (const char* s
 
 	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 @@ pidgin_message_style_load (const char* s
 
 	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 @@ init_theme_for_webkit (PurpleConversatio
 	
 	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);
 


More information about the Commits mailing list