2008-02-20 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Wed, 20 Feb 2008 10:59:47 +0000 (10:59 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Wed, 20 Feb 2008 10:59:47 +0000 (10:59 +0000)
commit8c451b8a6733d0193089760b67d61e6056c39675
treeec6128d8299ab97ee62f98d645661596853f2651
parent015eba286feb92b1b7297fdfd1ccd28c73b1c172
2008-02-20  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/clutter-actor.h:
* clutter/clutter-actor.c:
(clutter_actor_get_abs_opacity): Add function that does what
get_opacity() does now...

(clutter_actor_get_opacity): ... and make get_opacity() do what
it's supposed to be doing. The original get_opacity() returned
a composited value, and there's no way to actually extract the
real opacity value set with set_opacity().

* clutter/clutter-clone-texture.c:
* clutter/clutter-rectangle.c:
* clutter/clutter-texture.c: Update to use get_abs_opacity().

* clutter/clutter-entry.c:
* clutter/clutter-label.c: Ditto. Also, never change the stored
alpha value. (#804)

* tests/Makefile.am:
* tests/test-opacity.c: Test suite for the get_opacity() and
get_abs_opacity() API, and correct opacity handling.

* README: Add note about the change in get_opacity().
ChangeLog
README
clutter/clutter-actor.c
clutter/clutter-actor.h
clutter/clutter-clone-texture.c
clutter/clutter-entry.c
clutter/clutter-label.c
clutter/clutter-rectangle.c
clutter/clutter-texture.c
tests/Makefile.am
tests/test-opacity.c [new file with mode: 0644]