pidgin/plugins/adiumthemes/webkit.c

branch
soc.2009.webkitmessageview
changeset 32481
3f1ea49c8c2d
parent 32480
5094cb6448af
child 32482
d0f92b6cc6b4
--- a/pidgin/plugins/adiumthemes/webkit.c	Wed Aug 12 01:12:15 2009 +0000
+++ b/pidgin/plugins/adiumthemes/webkit.c	Wed Aug 12 02:01:35 2009 +0000
@@ -767,6 +767,8 @@
 	template = replace_template_tokens(style, style->template_html, strlen(style->template_html) + strlen(style->header_html), header, footer);
 
 	g_assert(template);
+	
+	purple_debug_info ("webkit", "template: %s\n", template);
 	webkit_web_view_load_string(WEBKIT_WEB_VIEW(webkit), template, "text/html", "UTF-8", baseuri);
 
 	g_object_set_data (G_OBJECT(webkit), MESSAGE_STYLE_KEY, style);
@@ -851,6 +853,7 @@
 	escape = gtk_webview_quote_js_string (msg);
 	script = g_strdup_printf("%s(%s)", func, escape);
 
+	purple_debug_info ("webkit", "JS: %s\n", script);
 	gtk_webview_safe_execute_script (GTK_WEBVIEW (webkit), script);
 
 	g_free(script);

mercurial