soc.2009.webkitmessageview: a2991ded: apparent code for webkit transparency th...

tdrhq at soc.pidgin.im tdrhq at soc.pidgin.im
Tue Aug 25 12:03:48 EDT 2009


-----------------------------------------------------------------
Revision: a2991ded5c957e9af8595ed8eb4dc7456f5db9a8
Ancestor: d668734fbbb157999100c2323e0598dd282e84eb
Author: tdrhq at soc.pidgin.im
Date: 2009-08-13T19:58:17
Branch: im.pidgin.soc.2009.webkitmessageview
URL: http://d.pidgin.im/viewmtn/revision/info/a2991ded5c957e9af8595ed8eb4dc7456f5db9a8

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

ChangeLog: 

apparent code for webkit transparency that might not be working.

-------------- next part --------------
============================================================
--- pidgin/plugins/adiumthemes/webkit.c	4a751daef604f9459eb85a3c9637907c19507944
+++ pidgin/plugins/adiumthemes/webkit.c	ffc0d3e499437d65b41414c69ec2e56baf0f74d4
@@ -730,7 +730,7 @@ get_webkit(PurpleConversation *conv)
 		return gtkconv->webview;
 }
 
-static void set_theme_font_settings (WebKitWebView *webview, PidginMessageStyle *style)
+static void set_theme_webkit_settings (WebKitWebView *webview, PidginMessageStyle *style)
 {
 	WebKitWebSettings *settings;
 
@@ -740,6 +740,9 @@ static void set_theme_font_settings (Web
 	
 	if (style->default_font_size)
 		g_object_set (G_OBJECT (settings), "default-font-size", GINT_TO_POINTER (style->default_font_size), NULL);
+
+	/* this does not work :( */
+	webkit_web_view_set_transparent (webview, style->default_background_is_transparent);
 }
 
 
@@ -783,7 +786,7 @@ init_theme_for_webkit (PurpleConversatio
 	
 	purple_debug_info ("webkit", "template: %s\n", template);
 
-	set_theme_font_settings (WEBKIT_WEB_VIEW(webkit), style);
+	set_theme_webkit_settings (WEBKIT_WEB_VIEW(webkit), style);
 	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);
@@ -1119,7 +1122,7 @@ variant_update_conversation (PurpleConve
 	script = g_strdup_printf ("setStylesheet(\"mainStyle\",\"%s\")", pidgin_message_style_get_css (style));
 	gtk_webview_safe_execute_script (GTK_WEBVIEW(webview), script);
 
-	set_theme_font_settings (WEBKIT_WEB_VIEW (gtkconv->webview), style);
+	set_theme_webkit_settings (WEBKIT_WEB_VIEW (gtkconv->webview), style);
 	g_free (script);
 }
 


More information about the Commits mailing list