[Webkit-unassigned] [Bug 17626] Programatically set background color and 16-bit alpha on WebKit GTK

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 1 12:48:11 PST 2008


alp at atoker.com changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1

------- Comment #2 from alp at atoker.com  2008-03-01 12:48 PDT -------
(In reply to comment #0)
> The OSX API allows you to set a background NSColor, which represents and RGBA
> value. The GTK+ analog to this is GdkColor, which only supports RGB. I've
> modeled this interface after GtkColorSelection which has separate, but similar,
> functions and properties for GdkColors and a separate guint16 alpha value.
> I've kept the set_transparent/get_transparent API for backward compatibility,
> but suspect they should be deprecated.

set_transparent/get_transparent() is actually based directly on the
drawsBackground from the Mac API (there might still be a case for removing it),
but you are right that setting a background color is also a useful feature
present on Mac.

I'll need to compare the proposed implementation to the one in Mac since Mac's
was slightly more compilicated IIRC.

Out of curiosity, is the background color/alpha setting useful in apps
(guessing this is for pidgin)?

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list