actor: sync entry has_clip member to clip state
authorRay Strode <rstrode@redhat.com>
Wed, 29 Sep 2010 22:43:30 +0000 (18:43 -0400)
committerRobert Bragg <robert@linux.intel.com>
Thu, 30 Sep 2010 10:54:07 +0000 (11:54 +0100)
commit32d647ddd15ebddf91aa15b092fdcdf14d31ec4f
treef1b89e1db08dc8d39b50afba8b335a481398111e
parentfba633529148e65b9e136ea082fa7f853b789d96
actor: sync entry has_clip member to clip state

The clutter stage has a list of entries of actors waiting to be redrawn.
Each entry has a "clip" ClutterPaintVolume member which represents which
how much of the actor needs to get redrawn.  It's possible for there to
be no clip associated with the entry.  In this case, the clip member is
invalid, the has_clip member should be set to false.

This commit fixes a bug where the has_clip member was not being
initially, explicitly set to false for new entries, and not being
explicitly set to false in the event the clip associated with the entry
is freed.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2350

Signed-off-by: Robert Bragg <robert@linux.intel.com>
clutter/clutter-stage.c