[AdgEntity] Improved "invalidate" signal
commit47caee805149a62880a3f77e3317d43d2b9a9205
authorNicola Fontana <ntd@entidi.it>
Mon, 17 Aug 2009 19:55:49 +0000 (17 21:55 +0200)
committerNicola Fontana <ntd@entidi.it>
Mon, 17 Aug 2009 19:55:49 +0000 (17 21:55 +0200)
tree10abda19d248663fbad67e7ec322e055bbde8e22
parent252e37945f549c00d21e635fcd4dfdd745f95f70
[AdgEntity] Improved "invalidate" signal

Using "invalidate" about the same way the "render" signal is managed,
but revering the meaning. This means the default "invalidate" handler
is not overridable but instead call the render() virtual method.

If render() is not implemented, a valid empty invalidate callback is
assumed (useful for entities without cache). At the end, if the callback
run succesfully (that is, returned TRUE) the RENDERED flag is reset.
adg/adg-entity.c
adg/adg-entity.h