# HG changeset patch # User tdrhq@soc.pidgin.im # Date 1250193497 0 # Node ID 53735be6950ad859a82019f5271a5aae2b156446 # Parent c410e48a31c6bf6ecde8abfdbd6f099f5da35343 apparent code for webkit transparency that might not be working. diff -r c410e48a31c6 -r 53735be6950a pidgin/plugins/adiumthemes/webkit.c --- a/pidgin/plugins/adiumthemes/webkit.c Thu Aug 13 19:56:23 2009 +0000 +++ b/pidgin/plugins/adiumthemes/webkit.c Thu Aug 13 19:58:17 2009 +0000 @@ -730,7 +730,7 @@ 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 @@ 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 @@ 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 @@ 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); }