Bug 19941 - [Gtk] webkit_web_view_set_transparent doesn't work
Summary: [Gtk] webkit_web_view_set_transparent doesn't work
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2008-07-08 03:48 PDT by Jan Alonzo
Modified: 2010-10-21 17:15 PDT (History)
5 users (show)

See Also:


Attachments
Alp Toker's transparency demo presented to FOSDEM 2008 (1.24 KB, text/plain)
2010-09-11 12:25 PDT, Sylvain Fourmanoit
no flags Details
Web page with semi-transparent body (413 bytes, text/html)
2010-09-11 12:27 PDT, Sylvain Fourmanoit
no flags Details
Screenshot of test.html using Alp Toker's Demo (75.50 KB, image/jpeg)
2010-09-11 12:29 PDT, Sylvain Fourmanoit
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Alonzo 2008-07-08 03:48:58 PDT
"Whise" mailed in pywebkitgtk mailing list that set_transparent doesn't seem to work. I tried using webkit_web_view_set_transparent to true in GtkLauncher but it doesn't seem to work as well. "doesn't work" meaning we're not getting any transparency at all.
Comment 1 helder fraga 2008-08-03 07:49:50 PDT
im planing to port dashboard to linux , and without this working feature it is dificult
Comment 2 Sylvain Fourmanoit 2008-08-10 15:17:06 PDT
webkit_web_view_set_transparent() did work a few months ago; I still have an old GTK webkit build (r30763, svn head somewhere around March 2008) I can build against on which the mc.c hack Alp Toker presented to FOSDEM 2008 has working transparency:

http://www.atoker.com/blog/2008/02/26/developing-hybrid-web-gtk-applications/

At least for me, transparency does not work anymore with mc.c built against current trunk (r35658) -- it has not since around May; unfortunately, I don't have a narrower interval.
Comment 3 Christophe CHAPUIS 2009-12-01 10:39:25 PST
I confirm this bug is still widely open. I'm trying to use it today in an applet of Cairo-Dock, and it has never been working for me.
Here is the part of the source code that is using this functionality, if it may be of some help:
http://bazaar.launchpad.net/~cairo-dock-team/cairo-dock-plug-ins/plug-ins/annotate/head%3A/weblets/src/applet-widget.c
Comment 4 Simon Fraser (smfr) 2010-09-10 09:53:28 PDT
I wonder if http://trac.webkit.org/changeset/67137 helped here?
Comment 5 Sylvain Fourmanoit 2010-09-11 12:25:57 PDT
Created attachment 67312 [details]
Alp Toker's transparency demo presented to FOSDEM 2008
Comment 6 Sylvain Fourmanoit 2010-09-11 12:27:39 PDT
Created attachment 67313 [details]
Web page with semi-transparent body
Comment 7 Sylvain Fourmanoit 2010-09-11 12:29:25 PDT
Created attachment 67314 [details]
Screenshot of test.html using Alp Toker's Demo
Comment 8 Sylvain Fourmanoit 2010-09-11 13:03:45 PDT
(In reply to comment #4)
> I wonder if http://trac.webkit.org/changeset/67137 helped here?

Thanks for the heads-up.

Enclosed is a screenshot of Alp Toker's mc.c demo (no longer available from his blog) compiled against Webkit/GTK+ revision 67308: as you can see, transparency is back: that's great news!

Out of curiosity, I ran the same demo on a Webkit build from April the 15th 2010 (I don't know the exact revision -- it's called version 1.1.90 in pkgconfig); to my surprise, it also worked: I therefore ignore when and how the webkit_web_view_set_transparent() functionality has been restored...

Regardless, it seems to me this bug can be closed. I should probably add that my latest build (svn r67308) is unfortunately very unstable (it segfaults on about any page, from google.com to webkit.org), but I really haven't investigated why, and have no reason to believe this is specifically related to your r67137 commit.