Hey, Is there a way to have all pages constantly being transparent? It seems I must always set the transparent property after I load a page. I'd rather have transparency for the webpages constantly enabled. Basically when it creates a webview the transparency should be active by default. I changed webkit_web_view_class_init(), when the property is installed to TRUE but it doesn't seem to make a difference. Is there another point in the code where I have to change this in order to have a default behavior with transparency enabled?! I'm probably missing something... :-/
-Bernd -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Weber, Bernd Sent: Thursday, September 25, 2008 2:38 PM To: Christian Dywan; [email protected] Subject: Re: [webkit-dev] Transparency on GTK/DirectFB Thanks Christian, great pointers! I got it working! Very cool! -Bernd For reference, here the changes I did in GtkLauncher: static void make_transparent(WebKitWebView* l_web_view) { GValue val = {0,}; g_value_init (&val, G_TYPE_BOOLEAN); g_value_set_boolean (&val, 1); g_object_set_property (G_OBJECT (l_web_view), "transparent", &val); } static void make_transparent_cb (GtkWidget* widget, gpointer data) { make_transparent (web_view); } static void set_colormap(GtkWidget* window) { GdkScreen* screen = gtk_widget_get_screen (window); GdkColormap* colormap = gdk_screen_get_rgba_colormap (screen); if (!colormap) { g_warning ("No ARGB colormap available! Using RGB colormap!\n"); colormap = gdk_screen_get_rgb_colormap (screen); } else { g_print ("Using ARGB colormap now! :-)\n"); } gtk_widget_set_colormap (window, colormap); } In main.c: main_window = create_window (); set_colormap(main_window); -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Dywan Sent: Wednesday, September 24, 2008 3:48 PM To: [email protected] Subject: Re: [webkit-dev] Transparency on GTK/DirectFB Am Wed, 24 Sep 2008 15:16:24 -0700 schrieb Darin Adler <[EMAIL PROTECTED]>: > On Sep 24, 2008, at 3:10 PM, Weber, Bernd wrote: > > > The holy grail however would be to achieve transparency to the > > underlying desktop, by defining "transparent" as the background > > color. > > WebKit definitely supports this. It's used this way in the Mac OS X > Dashboard. > > > I'm not sure whether Webkit, especially with GTK/DirectFB, > > supports this right now. > > I don't know if the GTK/DirectFB port supports it. That's a question > for someone else. Take a look at the headers. There's no other documentation at this point but it should be intuitive enough for most of what we have. webkit_web_view_set_transparent You will want that. And make sure you have an ARGB colour map on your window, ie. when you create your toplevel window. ciao, Christian _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev ----------------------------------------- This message (including any attachments) may contain confidential information intended for a specific individual and purpose. If you are not the intended recipient, delete this message. If you are not the intended recipient, disclosing, copying, distributing, or taking any action based on this message is strictly prohibited. _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

